Re: Ranges for case statement and a WTF moment.
| From: | David Harkness | Date: | Thu, 07 Apr 2011 19:10:31 +0000 |
| Subject: | Re: Ranges for case statement and a WTF moment. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312307@lists.php.net to get a copy of this message | ||
On Thu, Apr 7, 2011 at 2:16 AM, Richard Quadling <rquadling@gmail.com>wrote:
> And all this is shown when you ...
>
> php -r "print_r(array_map(function(&$token){if(is_array($token)){$token[0]
> = token_name($token[0]);} return $token;},token_get_all('<?php echo
> 10...19;')));"
>
Woah, that's a very nifty trick! I like PHP more and more each day . . . I
can *almost* overlook the $ now. :p
David