Improved array dereferencing
| From: | Jesse McCarthy | Date: | Thu, 14 Feb 2002 02:03:26 +0000 |
| Subject: | Improved array dereferencing | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-80033@lists.php.net to get a copy of this message | ||
I posted this to the "PHP Into the Future" forum on Zend.com and no one
responded, so now I'm posting it here, though I'm not sure how directly
relevant it is to this list:
I don't know if this has come up, but I think it would be great to have
improved array dereferencing support in PHP so that you can dereference an
element of an anonymous array (such as an array returned by a function), like
you can with a list in Perl, e.g. (stat($file))[8], or in PHP (parse_url(
$URL ))[ 'host' ].
Improved object dereferencing support is included in the Zend v2 overview,
but I don't see anything about arrays. Can someone tell me if this
functionality is in PHP's future?
Jesse McCarthy