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 remove trailing whitespace from a string?How do I make the first letter of a string uppercase?
How do I make sure a string is a certain length?
What is the usage of {} in strings?
What is the usage of { } in string handling in php?
