note 109650 deleted from function.return by danbrown

From: Date: Fri, 10 Aug 2012 16:15:23 +0000
Subject: note 109650 deleted from function.return by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190006@lists.php.net to get a copy of this message
Note Submitter: sony dot krishna dot swamy at gmail dot com ---- return "Not ok"; is fine. But return "Not ok because: ".$a; leads to unpredictable errors, like unexpected paranthesis '}' Hence, in such cases, do this $message="Not ok because: ".$a; return $message; Regards, Sony

« previous php.notes (#190006) next »