![]() |
PHP Help Needed (easy q for programmers)
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?
|
if (strtolower($string1)==strtolower($string2))
{ Thank_me(); } |
|
Thanks!!
|
Quote:
Dispite of what you might think is indicated by the name, this function is case insencitive :) Code:
if(strcasecmp($string1,$string2) == 0)* 0 - if the two strings are equal * <0 - if string1 is less than string2 * >0 - if string1 is greater than string2 |
| All times are GMT -7. The time now is 04:08 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123