Habari\MultiByte::valid_data PHP Метод

valid_data() публичный статический Метод

Determines if the passed string is valid character data (according to mbstring)
public static valid_data ( string $str, null $use_enc = null ) : boolean
$str string the string to check
$use_enc null
Результат boolean
    public static function valid_data($str, $use_enc = null)
    {
        $enc = self::$hab_enc;
        if ($use_enc !== null) {
            $enc = $use_enc;
        }
        if (self::$use_library == self::USE_MBSTRING) {
            return \mb_check_encoding($str, $enc);
        }
        return true;
    }