Hello Dmitry,

  it was requested several times in the past and i'd be all for it. The
reason we didn't add it so far is that it didn't seem as important as
foo()->bar() and that we had way more other things todo.

best regards
marcus

Thursday, November 9, 2006, 10:21:45 PM, you 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];
?>>




Best regards,
 Marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to