ob_get_contents
PHP 4, PHP 5, PHP 7, PHP 8
ob_get_contents - Return the contents of the output buffer
Manual
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.