return issues, array issues
| From: | Cece) Szabolcs | Date: | Sun, 17 Aug 2003 21:14:49 +0000 |
| Subject: | return issues, array issues | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355899@lists.php.net to get a copy of this message | ||
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).
That was a stupid question from me to clear all issues :)
There is no problem with return. The problem is how to handle
"array".
I am ready to revert all modifications with array, but need
to know is's okay to all to revert back all array() to array ().
Cece