note 14294 deleted from function.ob-start by sniper

From: Date: Mon, 03 Nov 2003 15:37:17 +0000
Subject: note 14294 deleted from function.ob-start by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59699@lists.php.net to get a copy of this message
Note Submitter: dwb@NOSPAMTHANKYOUwam.umd.edu ---- I noticed PHP handles multiple output buffers quite nicely. I would expect the below code to put everything in buf2, but PHP is smart & separates the two. ob_start(); // buf1 echo ' multiple '; ob_start(); // buf2 echo ' buffers work '; $buf2 = ob_get_contents(); ob_end_clean(); $buf1 = ob_get_contents(); ob_end_clean(); echo $buf1; echo '<br/>'; echo $buf2;

« previous php.notes (#59699) next »