πŸ“Š PHP
Q. What will the function header('Location: example.com'); do?
  • (A) Redirect to example.com
  • (B) Include example.com content
  • (C) Throw an error
  • (D) Do nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) Redirect to example.com

Explanation: header() sends a raw HTTP header; Location header redirects the browser.

Explanation by: Rati Dubey
header() sends a raw HTTP header; Location header redirects the browser.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
33
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
95%
Success Rate