note 35157 deleted from ref.errorfunc by aidan

From: Date: Fri, 10 Sep 2004 06:51:33 +0000
Subject: note 35157 deleted from ref.errorfunc by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76376@lists.php.net to get a copy of this message
Note Submitter: Martin F. ---- Another way of handling errors: ob_start(); foo(); // must not output anything to the output buffer $errorstring = ob_get_contents(); ob_end_clean(); if(strlen($errorstring)) bar($errorstring); // your error-handling function

« previous php.notes (#76376) next »