public static function getCharacterSetEciByName(string $name) : ?self
    {
        $nameToEci = self::nameToEci();
        $name = strtolower($name);

        if (! array_key_exists($name, $nameToEci)) {
            return null;
        }

        return $nameToEci[$name];
    }
public static function getCharacterSetEciByName(string $name) : ?self
    {
        $nameToEci = self::nameToEci();
        $name = strtolower($name);

        if (! array_key_exists($name, $nameToEci)) {
            return null;
        }

        return $nameToEci[$name];
    }
public static function getCharacterSetEciByName ( string $ name ) : ? self { $ nameToEci = self :: nameToEci ( ) ; $ name = strtolower ( $ name ) ; if ( ! array_key_exists ( $ name , $ nameToEci ) ) { return null ; } return $ nameToEci [ $ name ] ; }
Returns character set ECI by name.

Returns the representing ECI of a given name, or null if it is legal but unsupported
Returns character set ECI by name .