RE: [PHP] or return problem

From: Date: Tue, 07 Oct 2003 19:13:50 +0000
Subject: RE: [PHP] or return problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165357@lists.php.net to get a copy of this message
On Tue, 2003-10-07 at 15:05, Roger B.A. Klorese wrote: > > Sounds to me that if it looks like a function, quacks like a function, etc., > only a broken language definition would treat it differently from a > function... 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. Cheers, 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 (#165357) next »