- token_get_all: documentation ( source)
- print_r: documentation ( source)
- token_name: documentation ( source)
<?php
$t = token_get_all('<?php $perf_id == "chris" AND $date < strtotime("5th July");');
foreach($t as $i=>$k)$t[$i][0] = token_name($k[0]);
print_r($t);