better example as goba sugested

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147775 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-01-03 17:43:44 +00:00
parent d9ee19057b
commit 32f0ae69e1

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<refentry id="function.ob-get-flush">
<refnamediv>
<refname>ob_get_flush</refname>
@ -33,8 +33,9 @@
//using output_buffering=On
print_r(ob_list_handlers());
//this will output everything in buffer
echo ob_get_flush();
//save buffer in a file
$buffer = ob_get_flush();
file_put_contents('buffer.txt', $buffer);
print_r(ob_list_handlers());
?>
@ -50,10 +51,6 @@ Array
[0] => default output handler
)
Array
(
[0] => default output handler
)
Array
(
)
]]>