PHP For Example, Using My Collation Rules (Canadian-English), I Obtain Following Results: – String Function

 
echo strcmp ('Apple', 'Banana');        // returns < 0
echo strcmp ('apple', 'Apple');        // returns > 0
echo strcmp ('1', 'test');                // returns < 0

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.