Re: Why is some_function()[some_index] invalid syntax?
| From: | Jim Lucas | Date: | Fri, 11 Jan 2008 20:49:50 +0000 |
| Subject: | Re: Why is some_function()[some_index] invalid syntax? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267112@lists.php.net to get a copy of this message | ||
Nathan Nobbe wrote:
On Jan 11, 2008 3:45 AM, Zoltán Németh <znemeth@alterationx.hu> wrote:or Ruby -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeareand call it Java ;)or perhaps javascript :) function cool() {return [1, 2, 3];} alert(cool()[0]); -nathan