Re: contained in string...
| From: | rick - SomersNet, Inc. | Date: | Mon, 12 Jun 2000 02:15:49 +0000 |
| Subject: | Re: contained in string... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1584@lists.php.net to get a copy of this message | ||
that did it, thanks.. :)
php3@developersdesk.com wrote:
>
> Addressed to: "rick - SomersNet, Inc." <rick@somers.net>
> php-general@lists.php.net
>
> ** Reply to note from "rick - SomersNet, Inc." <rick@somers.net> Sun, 11 Jun
> 2000 17:19:16 -0700
> >
> > I am looking for the answer for "contained" as in
> >
> > if($STRING contains "X"){ do something..;}
> >
> > and I haven't been able to find it..
> >
>
> How about:
>
> if( ereg( 'X', $STRING )) { do something..}
>
> Rick Widmer
> Internet Marketing Specialists
> www.developersdesk.com