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