note 72539 rejected from control-structures.alternative-syntax by nlopess

From: Date: Tue, 23 Jan 2007 22:51:49 +0000
Subject: note 72539 rejected from control-structures.alternative-syntax by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122088@lists.php.net to get a copy of this message
Note Submitter: omatai at paradise dot net dot nz ---- One of the "alternative" control structures that I really liked when I first saw PHP was: <statement> or die(); The only trouble is... it does not appear to extend to things like: <statement> or return( "Failed with error" . mysqlerror() ); Or does it? Or if not, why not? It would be really handy for someone with greater PHP knowledge to end the googlequest and give a definitive answer somewhere appropriate...

« previous php.notes (#122088) next »