Re: contained in string...

From: Date: Mon, 12 Jun 2000 01:51:27 +0000
Subject: Re: contained in string...
Groups: php.general 
Request: Send a blank email to php-general+get-1578@lists.php.net to get a copy of this message
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

« previous php.general (#1578) next »