Q. Which of these functions is used to redirect to another page in PHP?

  • (A) header('Location: page.php')
  • (B) redirect('page.php')
  • (C) location('page.php')
  • (D) goto('page.php')
πŸ’¬ Discuss
βœ… Correct Answer: (A) header('Location: page.php')
Explanation: header() with Location is used to redirect in PHP.
Explanation by: Rati Dubey
header() with Location is used to redirect in PHP.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
86%
Success Rate