ジャンプ先: 概要. 戻り値. MEL 例.

概要

containsMultibyte(string $str)

文字列がマルチバイト文字を含むかどうかを判断します。

戻り値

なし

MEL 例

  // Determine whether or not a string contains multibyte characters

  // 

  // The result will be 0 if the string contains no multibyte characters

  int numFound = containsMultibyte("Test String");
  // Result: 0


  // The result will be non-zero if the string contains 

  // multibyte characters

  // 

  int numFound = containsMultibyte($localizedString);
  // Result: 1