On Sun, 2003-08-17 at 15:13, Heilig (Cece) Szabolcs wrote:
> 
> > You shouldn't use () with echo anyway, it can do things you won't
> > expect. array and return are control structures too, so I don't see why
> > they should be different. (array is not that obvious, but return is
> > definitely a control structure (it controls the end of a
> > function/include file)). Both echo and return do not need ()'s
> > anyway... unless you really need to group things (which only makes sense
> >  with return of course).
> 
> Derick has absolutely right with return i think. I was a bit doubtful
> with that. I saw returns without brackets a lot, and some return
> with brackets, but without space between.
> I'm going to revert return affected docs.

I was dealing with bug #20739 on friday which was related to the return
syntax.
Check the CVS version of the docs for information.

The parentheses are only needed if you are returning the result of an
expression and not a value/variable.

This statement is not refering to the PEAR CS, but may clarify the usage
of the ()'s

-ali

> 
> But what about arrays? Can we discuss Pear guys about that?
> 
> -- 
> =============================================================
> Heilig (Cece) Szabolcs - [EMAIL PROTECTED] - http://www.phphost.hu
> =============================================================
> 
> 
> 
> -- 
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-- 
http://evilphp.com/key.asc


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to