strcmp Binary safe string comparison &reftitle.description; intstrcmp stringstring1 stringstring2 Note that this comparison is case sensitive. For case-insensitive comparison, see strcasecmp. Note that this comparison is not locale aware. For locale aware comparison see strcoll or Collator::compare &reftitle.parameters; string1 The first string. string2 The second string. &reftitle.returnvalues; &strings.comparison.return; &reftitle.changelog; &Version; &Description; &standard.changelog.binary-safe-string-comparison; &reftitle.examples; <function>strcmp</function> example ]]> &reftitle.seealso; Full string comparison strcasecmp Collator::compare strcoll Partial string comparison substr_compare strncmp strstr Similar / other string comparison preg_match levenshtein metaphone similar_text soundex