how to compare strings in PHP?
Points to note with this function are as follows:
- it is case sensitive
- it returns a number as follows:
<0 if the first string is less than the second string, it returns >0 if the opposite is true, and it returns 0 if they are equal
the two arguments to the function are simply the first string and the second string.
Comments on this Question/Answer
How do I compare email address to see if they matchBy: Ike Martin, 21 Aug 2009 08:56:32
Reply to comments / post your own comment >>>
ASK A QUESTION
More strings PHP Questions
How do I make the contents of a string lower case?How do I calculate the MD5 hash of a string?
How do I break email address into username and hostname?
How do you hash the password in this php script: define(sb db user name, admin store); define(sb db password, mypassword);
What is the usage of {} in strings?
