Re: string search
| From: | CC Zona | Date: | Mon, 16 Jul 2001 20:59:29 +0000 |
| Subject: | Re: string search | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58120@lists.php.net to get a copy of this message | ||
In article <20010716154038.42417.qmail@pb1.pair.com>,
dark_panda@hushmail.com (J Smith) wrote:
> > 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.
> >
> > Joseph
> >
>
> Try researching regular expressions. In PHP, look at the preg and ereg
> groups of functions.
This doesn't sound like it requires the overhead of a regex function.
Check out <http://php.net/strstr> instead.
--
CC