Re: Ranges for case statement and a WTF moment.
| From: | Richard Quadling | Date: | Thu, 07 Apr 2011 09:16:47 +0000 |
| Subject: | Re: Ranges for case statement and a WTF moment. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312296@lists.php.net to get a copy of this message | ||
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;')));"
Array
(
[0] => Array
(
[0] => T_OPEN_TAG
[1] => <?php
[2] => 1
)
[1] => Array
(
[0] => T_ECHO
[1] => echo
[2] => 1
)
[2] => Array
(
[0] => T_WHITESPACE
[1] =>
[2] => 1
)
[3] => Array
(
[0] => T_DNUMBER
[1] => 10.
[2] => 1
)
[4] => .
[5] => Array
(
[0] => T_DNUMBER
[1] => .19
[2] => 1
)
[6] => ;
)
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY