Bug #11063: $var = function_returning_array(args)[0]; doesn't work
| From: | jeremy at deadbeef dot com | Date: | Wed, 23 May 2001 20:35:48 +0000 |
| Subject: | Bug #11063: $var = function_returning_array(args)[0]; doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56536@lists.php.net to get a copy of this message | ||
From: jeremy@deadbeef.com
Operating system: Windows NT 4.0 Build 1381
PHP version: 4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description: $var = function_returning_array(args)[0]; doesn't work
$var = function_returning_array(args)[0];
gives an error but
$var = function_returning_array(args);
$var=$var[0];
works fine. I think that either should work.
--
Edit Bug report at: http://bugs.php.net/?id=11063&edit=1