PHP strcmp() May 22, 2012 Pramod T P It compares two strings Example <?php if (strcmp(“phpcode”, “PHPCode”) == 0) { echo ‘Strings are equal’; }else{ echo ‘Strings are not equal’; } ?> Output Strings are not equal