note 87662 added to function.ob-get-clean
| From: | adrien dot dupuis at gmail dot com | Date: | Mon, 15 Dec 2008 18:28:57 +0000 |
| Subject: | note 87662 added to function.ob-get-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148191@lists.php.net to get a copy of this message | ||
to webmaster at ragnarokonline dot de
You have shown that the name of this is function is misleading, it should have been named
ob_get_end_clean. There is no direct function to get, clean and continue with the same buffer.
<? ob_start(); ?>
plain
<? $slice1 = ob_get_contents(); ob_clean(); ?>
text
<? $slice2 = ob_get_clean(); ?>
<?=$slice1?><hr /><?=$slice2?>
----
Server IP: 89.31.146.176
Probable Submitter: 217.195.19.145
----
Manual Page -- http://www.php.net/manual/en/function.ob-get-clean.php
Edit -- https://master.php.net/note/edit/87662
Del: integrated -- https://master.php.net/note/delete/87662/integrated
Del: useless -- https://master.php.net/note/delete/87662/useless
Del: bad code -- https://master.php.net/note/delete/87662/bad+code
Del: spam -- https://master.php.net/note/delete/87662/spam
Del: non-english -- https://master.php.net/note/delete/87662/non-english
Del: in docs -- https://master.php.net/note/delete/87662/in+docs
Del: other reasons-- https://master.php.net/note/delete/87662
Reject -- https://master.php.net/note/reject/87662
Search -- https://master.php.net/manage/user-notes.php