<?php $f=file("мыльники.txt"); for($i=0;$i<count($f);$i++) strpos($f[$i],"rambler") ? echo $f[$i] : continue; ?>