ob_get_contents

PHP 4, PHP 5, PHP 7, PHP 8
ob_get_contents - Return the contents of the output buffer
Manual
Code Examples

ob_get_contents( ): string|false

Gets the contents of the output buffer without clearing it.

Parameters

This function has no parameters.

Return Values

This will return the contents of the output buffer or false, if output buffering isn't active.

Related Functions

Example of ob_get_contents

Show all examples for ob_get_contents

PHP Version:


Function ob_get_contents:

Output Buffering Control Functions

Most used PHP functions