Re: That crazy IF command!

From: Date: Sat, 02 Apr 2005 21:21:39 +0000
Subject: Re: That crazy IF command!
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-39108@lists.php.net to get a copy of this message
Many thanks! Ron ----- Original Message ----- From: Justin Gruenberg <justin.gruenberg@gmail.com> To: Ron Piggott <ron.php@actsministries.org>; <php-db@lists.php.net> Sent: Sunday, April 03, 2005 3:05 PM Subject: Re: [PHP-DB] That crazy IF command! > On Apr 2, 2005 3:52 PM, Ron Piggott <ron.php@actsministries.org> wrote: > > Hey guys ... I am wondering if you have a varable named > > > > $query_holder="the big fat cow made lots of milk today"; > > > > are you able to use the if command to see if the words "big fat" are part of > > that phrase? > > > > What would the syntax be? > > > Multiple ways. > > if (stripos($query_holder, "big fat")) > http://us4.php.net/manual/en/function.stripos.php > > That's one way. > > Also... regular expressions.. > http://us4.php.net/manual/en/function.eregi.php > http://us4.php.net/manual/en/function.preg-match.php >

« previous php.db (#39108) next »