Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

[PHP] Re: string search From: CC Zona (cczona <email protected>)
Date: 07/16/01

In article <20010716154038.42417.qmail <email protected>>,
 dark_panda <email protected> (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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>