note 27468 added to function.token-get-all

From: Date: Fri, 06 Dec 2002 21:17:17 +0000
Subject: note 27468 added to function.token-get-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-40441@lists.php.net to get a copy of this message
This function parses PHP code. Here's an example of it's use. <? $code = '<?$a = 3;?>'; foreach(token_get_all($code) as $c) { if(is_array($c)) { print(token_name($c[0]) . ": '" . htmlentities($c[1]) . "'\n"); } else { print("$c\n"); } } ?> -- http://www.php.net/manual/en/function.token-get-all.php http://master.php.net/manage/user-notes.php?action=edit+27468 http://master.php.net/manage/user-notes.php?action=delete+27468 http://master.php.net/manage/user-notes.php?action=reject+27468

« previous php.notes (#40441) next »