0 && $max < $sum - $row++) { continue; } $span = ''; foreach ($match as $type) { foreach ($type['text'] as $text) { if (preg_match("/$text/i", $line)) { $span = ''; break 2; } } } echo $span, htmlspecialchars($line), ""; } fclose($fh); } ini_restore('memory_limit'); /* Restore original memory limit */ ?>