Quote:
Originally Posted by tnaindex
if (strtolower($string1)==strtolower($string2))
{
Thank_me();
}
|
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
Code:
if(strcasecmp($string1,$string2) == 0)
{
Thank_me_more();
}
Returns:
* 0 - if the two strings are equal
* <0 - if string1 is less than string2
* >0 - if string1 is greater than string2