Go to: Synopsis. Return value. MEL examples.
containsMultibyte(string $str)
int: returns 1 if the string contains multibyte characters or 0 if it does not. |
// 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