Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

Explain the purpose of output buffering in PHP?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

Output buffering in PHP buffers a scripts output. This buffer can be edited before returning it to the client. Without output buffering, PHP sends data to the web server as soon as it is ready. Output buffering "send" cookies at any point in the script. Cookies do not have to be necessarily sent near the start of page. Output buffers are stackable and hence sending to output is by choice.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the different types of errors in PHP?What is the use of "echo" in php?