On Wednesday 08 October 2003 02:51, Robert Cummings wrote:

> The original post came from someone being lazy, that appears to be
> influencing my take on the thread :) Also given the above code, it's
> completely pointless since the first operand is true and so it is
> impossible for return( 'foo' ) to ever be evaluated (and as stated in a
> post just before this the expression shouldn't break). Nonetheless given
> a variable as the first operand, I think anyone coding a return in a
> conditional like that is asking for trouble since I would guess that it
> has an undefined return value.

The example given by Leif does not even run. You get a parse error. So all the 
discussion about return exiting immediately and the left expression 
evaluating to whatever is (IMHO) moot. Apparently PHP does not allow you to 
use return like that, period.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Wernher von Braun settled for a V-2 when he coulda had a V-8.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to