I would like to compare two variables to see if they are the same, but I want this comparison to be case-insensitive.
For example, this would be case sensitive:
strcasecmp() returns 0 if the strings are the same (apart from case variations) so you can use:
if (strcasecmp($var1, $var2) == 0) { }