strcmp Binary safe string comparison &reftitle.description; intstrcmp stringstring1 stringstring2 Note that this comparison is case sensitive. &reftitle.parameters; string1 The first string. string2 The second string. &reftitle.returnvalues; Returns -1 if string1 is less than string2; 1 if string1 is greater than string2, and 0 if they are equal. &reftitle.changelog; &Version; &Description; &standard.changelog.binary-safe-string-comparison; &reftitle.examples; <function>strcmp</function> example ]]> &reftitle.seealso; strcasecmp preg_match substr_compare strncmp strstr substr