- token_get_all: documentation ( source)
- token_name: documentation ( source)
<?php
$code = '<?php $zip_code = 09876-0001;';
foreach(token_get_all($code) as $c){
if(is_array($c)){
print(token_name($c[0]).": \t".$c[1]."\n");
}
else {
print("$c\n");
}
}