Re: [PHP] StrPos/stristr

2003-03-04 Thread Marek Kilimajer
$lines=explode("\n",$something); foreach($lines as $line) { if(eregi('^au: (.*)$',$line,$m)) { $au=$m[1]; // you may want to break here } } John Taylor-Johnston wrote: http://www.php.net/manual/en/function.stristr.php http://www.php.net/manual/en/function.strpos.php Input from

[PHP] StrPos/stristr

2003-03-04 Thread John Taylor-Johnston
http://www.php.net/manual/en/function.stristr.php http://www.php.net/manual/en/function.strpos.php Input from a I want to scan endless lines of $something. If the First Three characters of any line begin with "au:" (case insensitive) I want to filter out that line, and let $au = that line of tex