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

  • (A) header('Location: page.php')
  • (B) redirect('page.php')
  • (C) go_to('page.php')
  • (D) navigate('page.php')
πŸ’¬ Discuss
βœ… Correct Answer: (A) header('Location: page.php')
Explanation: The header() function with 'Location:' is used to perform HTTP redirection.
Explanation by: Rati Dubey
The header() function with 'Location:' is used to perform HTTP redirection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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