/",$line,$result); if ($matchExp) { for ($count=0;$count<(sizeOf($result[1]));$count++) { if ($mode == "post") { //the variables for the array are in the vars array $value = $vars_array[$result[1][$count]]; } else { $value = ${$result[1][$count]}; } $line = preg_replace("/\<\!\-\-\s*COMANCHE\:".$result[1][$count]."\s*\-\-\>/",$value,$line); } echo $line; } else { echo $line; } } } ?>