ob_start

PHP 4, PHP 5, PHP 7, PHP 8
ob_start - Turn on output buffering

Example #1 User defined callback function example

Result: <html> <body> <p>It's like comparing oranges to oranges.</p> </body> </html>
PHP Version:

Example #2 Creating an unerasable output buffer

PHP Version:


Example #3 of ob_start

PHP Version:


Function ob_start:

Output Buffering Control Functions

Most used PHP functions