A

Admin • 833K Points
Coach

Q. What does header('Location: url') do in PHP?

  • (A) Redirects the browser
  • (B) Prints a URL
  • (C) Creates a link
  • (D) Opens a file
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

header('Location: url') sends a raw HTTP header to redirect the user.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.