Reply to Re: Better Ways Compare Strings: Exact Matches
Posted by Richard Levasseur on 03/08/06 07:15
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.