On Tue, Oct 07, 2003 at 01:02:36PM -0400, Pat Carmody wrote: : : Calling the following retor_test() function causes a "Parse error: parse : error, unexpected T_RETURN" message when the script is run: : : function istrue() { : return true; : } : function retor_test() { : istrue() or return( "False" ); : return "True"; : } : : The problem is with the "or return" part. Any ideas why?
Yes. : I realize that I could use an if statement instead, You just answered your own question. : but I'm a lazy, lazy man and I don't want to. Just use an if statement. Lazy, Perl-ish syntax blows chunks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php