Mega Code Archive

 
Categories / Php / Strings
 

For example, using my collation rules (Canadian-English), I obtain the following results

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