A

Admin • 832.27K Points
Coach

Q. Which function is used to redirect users to a different URL in PHP?

  • (A) redirect()
  • (B) header()
  • (C) goto()
  • (D) location()
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.