note 43284 deleted from function.return by aidan

From: Date: Thu, 26 Aug 2004 01:35:08 +0000
Subject: note 43284 deleted from function.return by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75267@lists.php.net to get a copy of this message
Note Submitter: endofyourself at yahoo dot com ---- Although, most likely a rare case, if in the event that you should attempt: <?PHP function doQuery() { $somequery = "SELECT * FROM myTable"; return mysql_query( $somequery ) or die( mysql_error() ); } ?> IN PHP 4 (I do not know about PHP 5 for this) the query result will not be returned. This is because the "or" operator ha higher precedence than "return". -brendon

« previous php.notes (#75267) next »