Re: syntax error
| From: | John Taylor-Johnston | Date: | Wed, 05 Mar 2003 01:00:56 +0000 |
| Subject: | Re: syntax error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138197@lists.php.net to get a copy of this message | ||
Thanks Keven. Didn't see that.
<?php
$line = "AU: Tomlinson,-Brian";
$AU = filter_strings("AU: ",$line);
function filter_strings($tofilter,$line){
if(eregi('^'.$tofilter.' (.*)$',$line,$m)) {
$filtered=$m[1];
return $filtered;
}
}
?>