note 62908 added to function.ob-get-clean
| From: | webmaster at ragnarokonline dot de | Date: | Sun, 12 Mar 2006 00:32:38 +0000 |
| Subject: | note 62908 added to function.ob-get-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105338@lists.php.net to get a copy of this message | ||
Ok, I wrote a function with works similar to ob_get_clean, but doesn't stop output-buffering.
Its simply a combination of ob_get_contents() and ob_clean().
Maybe someone finds it handy.
<?php
function ob_get_buffer()
{
if (($output = ob_get_contents()) !== false AND ob_clean())
{
return $output;
}
return false;
}
?>
----
Server IP: 212.124.37.9
Probable Submitter: 84.141.221.215
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ob-get-clean.php
Edit -- http://master.php.net/note/edit/62908
Del: integrated -- http://master.php.net/note/delete/62908/integrated
Del: useless -- http://master.php.net/note/delete/62908/useless
Del: bad code -- http://master.php.net/note/delete/62908/bad+code
Del: spam -- http://master.php.net/note/delete/62908/spam
Del: non-english -- http://master.php.net/note/delete/62908/non-english
Del: in docs -- http://master.php.net/note/delete/62908/in+docs
Del: other reasons-- http://master.php.net/note/delete/62908
Reject -- http://master.php.net/note/reject/62908
Search -- http://master.php.net/manage/user-notes.php