Reply to Re: Is there any function in php that will match a word exactly and if it finds it, it returns true.

Your name:

Reply:


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-----

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация