[PHP] Really simple string search question

2003-03-16 Thread Kevin - KD Micro Software
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



Re: [PHP] Really simple string search question

2003-03-16 Thread Kevin - KD Micro Software
Excellent, thank you for your quick response John.


Kevin Green
KD Micro Software

E-Mail: [EMAIL PROTECTED]
Internet: http://www.kdmicro.com.au


- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Kevin - KD Micro Software'" <[EMAIL PROTECTED]>; "'PHP List'"
<[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 8:58 AM
Subject: RE: [PHP] Really simple string search question


> > 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
>
> www.php.net/strstr
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php