Check if a word is in my string.

From: Date: Tue, 28 Aug 2001 22:02:02 +0000
Subject: Check if a word is in my string.
Groups: php.general 
Request: Send a blank email to php-general+get-64886@lists.php.net to get a copy of this message
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 (#64886) next »