Query: ob_get_clean
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
OB_GET_CLEAN(3) 1 OB_GET_CLEAN(3) ob_get_clean - Get current buffer contents and delete current output bufferSYNOPSISstring ob_get_clean (void )DESCRIPTIONGets the current buffer contents and delete current output buffer. ob_get_clean(3) essentially executes both ob_get_contents(3) and ob_end_clean(3). The output buffer must be started by ob_start(3) with PHP_OUTPUT_HANDLER_CLEANABLE flag. Otherwise ob_get_clean(3) will not work.RETURN VALUESReturns the contents of the output buffer and end output buffering. If output buffering isn't active then FALSE is returned.EXAMPLESExample #1 A simple ob_get_clean(3) example <?php ob_start(); echo "Hello World"; $out = ob_get_clean(); $out = strtolower($out); var_dump($out); ?> The above example will output: string(11) "hello world"SEE ALSOob_get_contents(3), ob_start(3). PHP Documentation Group OB_GET_CLEAN(3)
Related Man Pages |
---|
tidy_parse_string(3) - php |
ob_end_clean(3) - php |
ob_gzhandler(3) - php |
tidy_repair_string(3) - php |
tidy.parsestring(3) - php |
Similar Topics in the Unix Linux Community |
---|
Deleting contents of a UNIX File |
I want to delete the contents of a file which are matching with contents of other file |