note 102567 added to function.ob-get-clean

From: Date: Tue, 22 Feb 2011 07:56:44 +0000
Subject: note 102567 added to function.ob-get-clean
Groups: php.notes 
Request: Send a blank email to php-notes+get-177203@lists.php.net to get a copy of this message
Also, don't forget that you will need to ob_start() again for any successive calls: ob_start(); echo "1"; $content = ob_end_clean(); ob_start(); // This is NECESSARY for the next ob_end_clean() to work as intended. echo "2"; $content .= ob_end_clean(); echo $content; Output: 12 Without the second ob_start(), the output is 21 ... ---- Server IP: 192.41.42.26 Probable Submitter: 24.6.218.28 ---- Manual Page -- http://www.php.net/manual/en/function.ob-get-clean.php Edit -- https://master.php.net/note/edit/102567 Del: integrated -- https://master.php.net/note/delete/102567/integrated Del: useless -- https://master.php.net/note/delete/102567/useless Del: bad code -- https://master.php.net/note/delete/102567/bad+code Del: spam -- https://master.php.net/note/delete/102567/spam Del: non-english -- https://master.php.net/note/delete/102567/non-english Del: in docs -- https://master.php.net/note/delete/102567/in+docs Del: other reasons-- https://master.php.net/note/delete/102567 Reject -- https://master.php.net/note/reject/102567 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177203) next »