Posted by Steve on 11/12/07 17:54
"Brendan Gillatt" <brendanREMOVETHIS@brendanREMOVETHISgillatt.co.uk> wrote
in message news:uu-dnYh9Kt09rqvanZ2dnUVZ8sLinZ2d@pipex.net...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> ross.oneill@gmail.com wrote:
>> Thanks for your response. But if in your example
>> strVar "Bob is from Canada" -- would return true when I want it to
>> return false.
>>
> *borrowing Krustov's code as template*
>
> $demo="Bob is from Los Angeles CA";
>
> $qaz=" CA"; // note the extra space
>
> $wsx=strpos($qaz,$demo);
>
> if ($wsx==true) {print "exact match found";}
ummm...don't you need $wsx === true anyway?!
[Back to original message]
|