Re: return issues

From: Date: Sun, 17 Aug 2003 20:45:45 +0000
Subject: Re: return issues
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355898@lists.php.net to get a copy of this message
On Sun, 2003-08-17 at 07:39, Heilig (Cece) Szabolcs wrote: > Hello! > > >> return 0; > >> // 0 aren't variable, it's an expression. > >> // should it be return (0); ? > > > > no, why? > > If we got the rules strictly, 0 is an expression, not a > variable. But that's a really basic expression :) > > What about arrays? I agree with Derick. What is the problem with this? It doesn't matter at all what kind of expression appears after the 'return', but some expression must (unless you want to return null). -- Torben Wilson <torben@php.net> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----

« previous php.doc (#969355898) next »