Why is some_function()[some_index] invalid syntax?
| From: | Arlen Christian Mart Cuss | Date: | Fri, 11 Jan 2008 04:00:02 +0000 |
| Subject: | Why is some_function()[some_index] invalid syntax? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-267061@lists.php.net to get a copy of this message | ||
Hi there,
Why is it that if I try to evaluate an index of an array returned by a
function immediately, a syntax error is produced? (unexpected '[',
expecting ',' or ';')
Thanks,
Arlen.