PHP strncmp() May 23, 2012 Pramod T P It compares first n characters (case-sensitive) of a strings Example <?php echo strncmp(“phpcode”,”codez”,7); ?> Output 1