public static function to($encodingLabel, $text)
    {
        $encodingLabel = static::normalizeEncoding($encodingLabel);

        if ($encodingLabel == 'ISO-8859-1') {
            return static::toLatin1($text);
        }

        return static::toUTF8($text);
    }
public static function to($encodingLabel, $text)
    {
        $encodingLabel = static::normalizeEncoding($encodingLabel);

        if ($encodingLabel == 'ISO-8859-1') {
            return static::toLatin1($text);
        }

        return static::toUTF8($text);
    }
public static function to ( $ encodingLabel , $ text ) { $ encodingLabel = static :: normalizeEncoding ( $ encodingLabel ) ; if ( $ encodingLabel == 'ISO-8859-1' ) { return static :: toLatin1 ( $ text ) ; } return static :: toUTF8 ( $ text ) ; }
Encode to supported encoding types aliases
ISO88591
ISO8859
ISO
LATIN1
LATIN
UTF8
UTF
WIN1252
WINDOWS1252

@param  string           $encodingLabel  Encoding name
@param  string|array     $text
@return string|array
Encode to supported encoding types aliases ISO88591 ISO8859 ISO LATIN1 LATIN UTF8 UTF WIN1252 WINDOWS1252