|
Posted by Brendan Gillatt on 11/10/07 22:43
-----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";}
- --
Brendan Gillatt
brendan {at} brendangillatt {dot} co {dot} uk
http://www.brendangillatt.co.uk
PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBACD7433
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFHNjP4kA9dCbrNdDMRAnQ9AJ0dL6C23gPRQ4n40hjqIXg+H5nEQwCg0Yum
r9nv+WwcsnZfQIC22bQCdlU=
=uQxP
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|