getMap($source, $rules); # Benchmark: end time variable $endTime = getTime($startTime); # Output and Verify $tempCode = ''; $correctParse = ''; $output = ''; $b = count($map); for($a = 0; $a < $b; $a++) { $tempCode = substr($source, $map[$a]['start'], $map[$a]['end'] - $map[$a]['start']); $correctParse .= $tempCode; $output .= ''.$map[$a]['name'].'
'.str_replace(array('<', '>'), array('<', '>'), $tempCode).'';
if($a + 1 < $b)
$output .= '