Locale Page...  Global  |  Germany  |  UK  |  USA
Your privat CyberGadget - Die besten Resourcen für Web-Designer, Web-Master und Web-Developer!
Quick Search
Werbung
Partner & Freunde
Developersdex
Tutorial Guide
PHP: Handbuch
PHP Handbuch der PHP-Dokumentationsgruppe php.net

ob_get_flush

(PHP 4 >= 4.3.0, PHP 5)

ob_get_flush --  Flush the output buffer, return it as a string and turn off output buffering

Description

string ob_get_flush ( void )

ob_get_flush() flushs the output buffer, return it as a string and turns off output buffering. ob_get_flush() returns FALSE if no buffering is active.

Anmerkung: This function is similar to ob_end_flush(), except that this function returns the buffer as a string.

Beispiel 1. ob_get_flush() example

<?php
//using output_buffering=On
print_r(ob_list_handlers());

//save buffer in a file
$buffer = ob_get_flush();
file_put_contents('buffer.txt', $buffer);

print_r(ob_list_handlers());
?>

The above example will output:

Array
(
    [0] => default output handler
)
Array
(
)

See also ob_end_clean(), ob_end_flush() and ob_list_handlers().


© 2001 - 2009 CYGAD.NET | All rights reserved. | Terms of Service | About | Time data: GMT +1! | Portal Release X2.6.1 Beta | RunTime: 0.6883
Optimized for Internet Explorer Internet Explorer 6.0+, Firefox Firefox 1.5+!