View Single Post

  #8 (permalink)  
Old 01-11-2008
Nathan Nobbe
 
Posts: n/a
Default Re: [PHP] Why is some_function()[some_index] invalid syntax?

On Jan 11, 2008 3:45 AM, Zoltán Németh <znemeth@alterationx.hu> wrote:

> and call it Java ;)
>


or perhaps javascript :)
function cool() {
return [1, 2, 3];
}
alert(cool()[0]);

-nathan

Reply With Quote