public function containsMultibyteChar($str)
    {
        if (! is_string($str)) {
            throw new \InvalidArgumentException(
                'Error: Variable must be of type string but is of type "'.gettype($str).'"'
            );
        }

        return (mb_strlen($str) != strlen($str));
    }
public function containsMultibyteChar($str)
    {
        if (! is_string($str)) {
            throw new \InvalidArgumentException(
                'Error: Variable must be of type string but is of type "'.gettype($str).'"'
            );
        }

        return (mb_strlen($str) != strlen($str));
    }
public function containsMultibyteChar ( $ str ) { if ( ! is_string ( $ str ) ) { throw new \ InvalidArgumentException ( 'Error: Variable must be of type string but is of type "' . gettype ( $ str ) . '"' ) ; } return ( mb_strlen ( $ str ) != strlen ( $ str ) ) ; }
Returns true if a string contains any multibyte characters.

@param string $str
@return bool
@throws \Exception
Returns true if a string contains any multibyte characters .