Q. Which function is used to redirect to another page?

  • (A) header('Location: page.php')
  • (B) redirect('page.php')
  • (C) goto('page.php')
  • (D) move('page.php')
πŸ’¬ Discuss
βœ… Correct Answer: (A) header('Location: page.php')
Explanation: header('Location: ...') sends a raw HTTP header to redirect the browser.
Explanation by: Mr. Dubey
header('Location: ...') sends a raw HTTP header to redirect the browser.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate