You are here: Re: Better Ways Compare Strings: Exact Matches « PHP Programming Language « IT news, forums, messages
Re: Better Ways Compare Strings: Exact Matches

Posted by Jim Carlock on 03/09/06 21:57

"Richard Levasseur" <richardlev@gmail.com> wrote:
> How about case insensitive string comparison? strcasecmp()
> http://us3.php.net/manual/en/function.strcasecmp.php
>
> I also suggest array_search, in_array.
>
> Those are case sensitive, though, but it may be easier to store
> them all in lowercase and then ucwords() them before they're
> returned/displayed, or use array_walk or array_map to apply
> ucwords/strtolower to the source array.

Thanks Richard. I found strcmp() while searching and I knew of
strstr() versus stristr(), and so searched for stricmp().

Thanks much.

Jim Carlock
Post replies to the group.

 

Navigation:

[Reply to this 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

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