View Single Post
Old 01-12-2009, 10:24 AM  
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
Quote:
Originally Posted by tnaindex View Post
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
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote