SyntaxFix
Write A Post
Hire A Developer
Questions
compare() will return false (well, 0) if the strings are equal.
compare()
false
0
So don't take exchanging one for the other lightly.
Use whichever makes the code more readable.