note 36229 added to function.ob-get-clean

From: Date: Wed, 01 Oct 2003 21:21:28 +0000
Subject: note 36229 added to function.ob-get-clean
Groups: php.notes 
Request: Send a blank email to php-notes+get-57558@lists.php.net to get a copy of this message
Running PHP4 < 4.3.0, you can simply add the following to use the function anyway: <?php if (!function_exists("ob_get_clean")) { function ob_get_clean() { $ob_contents = ob_get_contents(); ob_end_clean(); return $ob_contents; } } ?> ---- Manual Page -- http://www.php.net/manual/en/function.ob-get-clean.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36229 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36229&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36229&report=yes

« previous php.notes (#57558) next »