Ob_start()

What is the purpose of ob_start() ?

Questions by shaju2009

Showing Answers 1 - 2 of 2 Answers

This function will turn output buffering on. While output buffering is ON no output is sent from the script (but headers), instead the output is stored in an internal buffer. to get contents from output buffer we can use ob_get_contents function

selvaa89

  • Apr 29th, 2009
 

This function will redirect the output to a buffer. We can flush out the buffer ob_end_flush(). ob_start must be called before any output is made. so the apt place is immediately after opening the php tag.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions