'; $line = 0; foreach($tokens as $key => $val) { if (is_array($val)) { // seeing if we can get line numbers out of the beast if (in_array($val[0],$nl_check)) { $line+=substr_count($val[1],"\n"); } echo token_name($val[0])." => ".htmlentities($val[1])."\n"; } else { echo "*** $val\n"; } } echo "$line\n"; print '