Query: ob_get_flush
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
OB_GET_FLUSH(3) 1 OB_GET_FLUSH(3) ob_get_flush - Flush the output buffer, return it as a string and turn off output bufferingSYNOPSISstring ob_get_flush (void )DESCRIPTIONob_get_flush(3) flushes the output buffer, return it as a string and turns off output buffering. The output buffer must be started by ob_start(3) with PHP_OUTPUT_HANDLER_FLUSHABLE flag. Otherwise ob_get_flush(3) will not work. Note This function is similar to ob_end_flush(3), except that this function returns the buffer as a string.RETURN VALUESReturns the output buffer or FALSE if no buffering is active.EXAMPLESExample #1 ob_get_flush(3) 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 ALSOob_end_clean(3), ob_end_flush(3), ob_list_handlers(3). PHP Documentation Group OB_GET_FLUSH(3)
Related Man Pages |
---|
ob_get_clean(3) - php |
ob_end_flush(3) - php |
output_add_rewrite_var(3) - php |
print_r(3) - php |
stream_set_write_buffer(3) - php |
Similar Topics in the Unix Linux Community |
---|
Perl - save results to output file. |
Serialization of a char buffer |