Tag: testing

  • Case-insensitive string comparison in PHP

    This is a common situation: I needed to compare two strings with unknown capitalization - “country” versus “Country”. Since these words should be considered equal even though the second “Country” has a capital “C”, we can’t do a straight comparison on the two - we need to do a case-insensitive comparison.

All tags