Re: Why is some_function()[some_index] invalid syntax?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> and call it Java ;)
>

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

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux