Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | PHP Quiz | Set 1 | Question 13

  • Last Updated : 20 Sep, 2021

Which of the following is the correct way to redirect in PHP pages?
(A) redirect()
(B) header()
(C) reflect()
(D) None all of the above

Answer: (B)

Explanation: The header() function is an inbuilt function in PHP that is used to send a raw HTTP header. The HTTP functions are those functions that manipulate information sent to the client or browser by the Web server before any other output has been sent. To redirect pages from one to another in PHP, we used the header() function.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!