RE: string search
| From: | Joseph Bannon | Date: | Mon, 16 Jul 2001 15:48:33 +0000 |
| Subject: | RE: string search | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58070@lists.php.net to get a copy of this message | ||
Will this work?
$string = "http://www.aol.com/";
if (ereg ("^aol.com^", $string) {
}
else {
}
> I need a search function (if statement) that performs a search on a string
> and if the string contains something like "aol.com", performs another
> function. Can anyone help me? Thanks.