(PHP 4, PHP 5, PHP 7)
ob_get_contents — Return the contents of the output buffer
ob_get_contents ( ) : string
Gets the contents of the output buffer without clearing it.
This will return the contents of the output buffer or false
, if output buffering isn't active.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.ob-get-contents.php