note 35125 added to function.token-get-all
| From: | tater at potatoe dot com | Date: | Wed, 20 Aug 2003 14:44:44 +0000 |
| Subject: | note 35125 added to function.token-get-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54767@lists.php.net to get a copy of this message | ||
Yes, the example is misleading:
$tokens = token_get_all("foreach");
does not return
array(T_FOREACH => "foreach")
but rather
array(T_FOREACH, "foreach")
(i.e. a 2-element list, not a 1-element hash)
----
Manual Page -- http://www.php.net/manual/en/function.token-get-all.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35125
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35125&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35125&report=yes