note 16281 added to function.ob-start

From: Date: Tue, 23 Oct 2001 16:04:42 +0000
Subject: note 16281 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-19329@lists.php.net to get a copy of this message
ob_start(); // buf1 echo ' multiple '; ob_start(); // buf2 // created after output sent to buf1 // therefore is separate echo ' buffers work '; $buf2 = ob_get_contents(); ob_end_clean(); // Buf2 nerver returns its contents $buf1 = ob_get_contents(); // Therefor buf1 is clean of buf2's // contents ob_end_clean(); echo $buf1; echo '<br/>'; echo $buf2; -- http://www.php.net/manual/en/function.ob-start.php http://master.php.net/manage/user-notes.php?action=edit+16281 http://master.php.net/manage/user-notes.php?action=delete+16281 http://master.php.net/manage/user-notes.php?action=reject+16281

« previous php.notes (#19329) next »