Re: [PHP-DEV] Suggestion: echo function(var)[0];

2010-06-07 Thread Harrison Yuan
RFCs for this aren't getting accepted? - Harrison On Sat, Jun 5, 2010 at 6:47 PM, Harrison Yuan wrote: > > I don't understand what is holding PHP back from having this syntax. > > Tig said: >  $tmp = getimagesize('./path/to/image'); >  echo $tmp[1]; > ?

Re: [PHP-DEV] Suggestion: echo function(var)[0];

2010-06-05 Thread Harrison Yuan
I don't understand what is holding PHP back from having this syntax. Tig said: The need to assign the trivial variable $tmp first is completely arbitrary. Is it not a design goal somewhere that languages should allow the greatest degree of literal expression possible, consistent with existing sy