You can use strstr, stristr, strpos or regular expressions. Maybe it's good to check the manual at php.net first before asking a question ;)
Coert Metz
Kevin - Kd Micro Software wrote:
Hello all,
This is probably a really easy thing to answer but I don't know what the answer is so if you lot could help me I would appreciate it.
Here's 3 examples: $var="www.google.com"; $var="blah blah google blah"; $var="google rules";
Now I just want to see if $var contains the word 'google' in it - which all 3 of the above do. Is there a way to do this?
________________________________________________________________ Kevin Green KD Micro Software
E-Mail: [EMAIL PROTECTED] Internet: http://www.kdmicro.com.au
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php