note 32256 deleted from function.error-reporting by bjori

From: Date: Mon, 24 Apr 2006 15:30:43 +0000
Subject: note 32256 deleted from function.error-reporting by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109465@lists.php.net to get a copy of this message
Note Submitter: peterdodge at liquidfirestudios.com ---- Try to avoid the use of E_USER_* errors when you can, as the script can better handle bad input better with conditional branching: # e.g. user entered "foo" $bad_data = "foo"; if ($input == $bad_data) { myErrorHandler("Gave bad data $input"); } else { processData($input); } Also, as a programming practice try to use E_NOTICE whenever possible to catch undefined variables.

« previous php.notes (#109465) next »