strcmp バイナリセーフな文字列比較 &reftitle.description; intstrcmp stringstring1 stringstring2 この比較は大文字小文字を区別することに注意してください。 大文字小文字を区別しない比較をする場合は、 strcasecmp を参照ください。 この比較はロケールを認識しないことに注意してください。 ロケールを考慮した比較をする場合は、 strcoll または Collator::compare を参照ください。 &reftitle.parameters; string1 最初の文字列。 string2 次の文字列。 &reftitle.returnvalues; &strings.comparison.return; &reftitle.changelog; &Version; &Description; &standard.changelog.binary-safe-string-comparison; &reftitle.examples; <function>strcmp</function> の例 ]]> &reftitle.seealso; 文字列の完全な比較 strcasecmp Collator::compare strcoll 文字列の部分比較 substr_compare strncmp strstr 文字列の類似度 / その他の文字列比較 preg_match levenshtein metaphone similar_text soundex