Re: or return problem

From: Date: Tue, 07 Oct 2003 19:39:20 +0000
Subject: Re: or return problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-165364@lists.php.net to get a copy of this message
On Tue, 2003-10-07 at 15:35, Leif K-Brooks wrote: > Robert Cummings wrote: > > > Generally it doesn't look like a function since you can do: > > > > return 'foo' > > > >which has no parenthesis. The parenthesis are optional and only used to > >return the result of an expression. > > > The same is true of exit/die. Yep, which is why I said they must receive special treat ment in the parser to be used as they are. They are also stated as being constructs and not functions in the online documentation. Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#165364) next »