php-general | 2001072
Date: 07/16/01
- Next message: Andrew Chase: "[PHP] RE: "report" generation with PHP"
- Previous message: Bob Scott: "Re: [PHP] auto link?"
- In reply to: J Smith: "[PHP] Re: string search"
- Next in thread: Steve Brett: "[PHP] Re: string search"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Andrew Chase: "[PHP] RE: "report" generation with PHP"
- Previous message: Bob Scott: "Re: [PHP] auto link?"
- In reply to: J Smith: "[PHP] Re: string search"
- Next in thread: Steve Brett: "[PHP] Re: string search"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

