I want to compare 2 strings but it shouldn't matter if the strings are uppercase or lowercase. Can anyone show me what the code would look like?
PHP Help Needed (easy q for programmers)
Collapse
X
-
PHP Help Needed (easy q for programmers)
Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
(Signup with ONLY your Email and Password. You can also refer people and get even more.)Tags: None -
-
Thanks!!Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
(Signup with ONLY your Email and Password. You can also refer people and get even more.)Comment
-
That's one way to do it, but there's a string function for it, so if it's a operation that has to repeated many times I think there's less overhead in using:
Dispite of what you might think is indicated by the name, this function is case insencitive
Returns:Code:if(strcasecmp($string1,$string2) == 0) { Thank_me_more(); }
* 0 - if the two strings are equal
* <0 - if string1 is less than string2
* >0 - if string1 is greater than string2ICQ# 143561781Comment

Comment