RE: [PHP] [Newman] function to use
| From: | John W. Holmes | Date: | Mon, 05 May 2003 05:08:37 +0000 |
| Subject: | RE: [PHP] [Newman] function to use | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146402@lists.php.net to get a copy of this message | ||
> > I'm looking for a function that dose the following.
> >
> > $foo = "should i say hello world?";
> >
> > if $foo (has the word hello in it continue)
> >
> > else don't
> >
> > any ideas
>
> php.net/eregi
Strpos() is probably the fastest method, eregi is slow.
www.php.net/strpos
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/