Re: Feature request

From: Date: Thu, 09 Nov 2006 23:12:34 +0000
Subject: Re: Feature request
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26443@lists.php.net to get a copy of this message
While I came across instance where such a feature would be useful, I think it is a bit too Perlish for me. -0. On 9-Nov-06, at 4:21 PM, Dmitry Shirokov wrote:
Hey guys. What are you thinking about adding this feature: <?php function foo() { return array(1,2,3,4,5,6); } echo foo()[4]; // <---- it that // or may be (foo())[4] ? // instead of $var = foo(); echo $var[4]; ?> --Thanks, Dmitry
Ilia Alshanetsky

« previous php.internals (#26443) next »