Really simple string search question
| From: | Kevin - KD Micro Software | Date: | Mon, 17 Mar 2003 00:57:29 +0000 |
| Subject: | Really simple string search question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139894@lists.php.net to get a copy of this message | ||
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: kevin@kdmicro.com.au
Internet: http://www.kdmicro.com.au