Re: Really simple string search question

From: Date: Mon, 17 Mar 2003 01:09:21 +0000
Subject: Re: Really simple string search question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139898@lists.php.net to get a copy of this message
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: kevin@kdmicro.com.au Internet: http://www.kdmicro.com.au


« previous php.general (#139898) next »