exact identical to "Abc" == "abC" - but case-insensitive?
As it's much easier:
Code: Select all
If ($a LikeI $b) {...}
instead of
$a = recase($a, 'upper');
$b = recase($b, 'upper');
If ($a == $b) {...}
echo "Abc" LikeI "abC"; //1 (no wildcard!)
(Or might there be a form of == to be case-insensitive? I don't think so...)