PHP strnatcmp() May 22, 2012 Pramod T P It compares two strings using a “natural” algorithm. Example <?php echo strnatcmp(“PHPCode”,”PHPCodez”); ?> Output -1