Go to: Synopsis. Return value. MEL examples.

Synopsis

containsMultibyte(string $str)

Determine whether or not a string contains multibyte characters.

Return value

None

MEL examples

  // 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