$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
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
2 matches
Mail list logo