note 110759 added to function.ob-start

From: Date: Mon, 03 Dec 2012 15:15:20 +0000
Subject: note 110759 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-192260@lists.php.net to get a copy of this message
Note that you can use anonymous functions in the callback, e.g. <?php ob_start(function($buffer)) { return str_replace("apples", "oranges", $buffer); }); ?> <html> <body> <p>It's like comparing apples to oranges.</p> </body> </html> <?php ob_end_flush(); ?> Gives the following output: <html> <body> <p>It's like comparing oranges to oranges.</p> </body> </html> ---- Server IP: 87.124.126.49 Probable Submitter: 129.11.77.197 (proxied: 129.11.152.127) ---- Manual Page -- http://www.php.net/manual/en/function.ob-start.php Edit -- https://master.php.net/note/edit/110759 Del: integrated -- https://master.php.net/note/delete/110759/integrated Del: useless -- https://master.php.net/note/delete/110759/useless Del: bad code -- https://master.php.net/note/delete/110759/bad+code Del: spam -- https://master.php.net/note/delete/110759/spam Del: non-english -- https://master.php.net/note/delete/110759/non-english Del: in docs -- https://master.php.net/note/delete/110759/in+docs Del: other reasons-- https://master.php.net/note/delete/110759 Reject -- https://master.php.net/note/reject/110759 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192260) next »