note 102568 added to function.ob-get-clean
[email protected] Mon, 21 Feb 2011 23:57:36 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Also, don't forget that you will need to ob_start() again for any successive calls: ob_start(); echo "1"; $content = ob_get_clean(); ob_start(); // This is NECESSARY for the next ob_get_clean() to work as intended. echo "2"; $content .= ob_get_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/102568 Del: integrated -- https://master.php.net/note/delete/102568/integrated Del: useless -- https://master.php.net/note/delete/102568/useless Del: bad code -- https://master.php.net/note/delete/102568/bad+code Del: spam -- https://master.php.net/note/delete/102568/spam Del: non-english -- https://master.php.net/note/delete/102568/non-english Del: in docs -- https://master.php.net/note/delete/102568/in+docs Del: other reasons-- https://master.php.net/note/delete/102568 Reject -- https://master.php.net/note/reject/102568 Search -- https://master.php.net/manage/user-notes.php