Re: Check if a word is in my string.

From: Date: Tue, 28 Aug 2001 22:06:02 +0000
Subject: Re: Check if a word is in my string.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64890@lists.php.net to get a copy of this message
see : http://www.php.net/strstr http://www.php.net/stristr Regards, Philip On Tue, 28 Aug 2001, Brandon Orther wrote: > Hello, > > I have a variable with a string in it. I want to check if in that > string a certain word is in it. Example > > $var = "This is a good sentence"; > > $check = look("good", $var); > > > and $check would equal 1 since "good" is in that string > > > > > does anyone know how to do this? >

« previous php.general (#64890) next »