Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

Explain me what is the use of header() function in php?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

Answer:

The header() function sends a raw HTTP header to a client browser. Remember that this function must be called before sending the actual out put. For example, You do not print any HTML element before using this function.

Download Junior PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what is the use of the function htmlentities?Tell me what is the difference between ereg_replace() and eregi_replace()?