functionse_search_line($filename,$pattern){if(is_readable($filename))$lines=file($filename);elsereturn'';$rs=array();if(!empty($lines)){foreach($linesas$key=>$value){if(preg_match($pattern,$value)){$rs[intval($key)+1]=$value;}}}if(!empty($rs))...
查看全文