Re: or return problem

From: Date: Tue, 07 Oct 2003 18:12:01 +0000
Subject: Re: or return problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-165341@lists.php.net to get a copy of this message
Chris Sherwood wrote:
Well Unfortunately pat You are going to have to be an unlazy man and use an if statement Why won't any of you give a good reason why it won't work? How come this works:
function foo() { 2+2==4 or die("The world is ending, or at least your processor!"); } But this doesn't: function foo() { 2+2==4 or return("The world is ending, or at least your processor!"); } The way I see it, there's something really odd going on here. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#165341) next »