mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
d9ee19057b
commit
32f0ae69e1
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
(
|
||||
)
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue