iconv_get_encoding example

if (!defined('ICONV_MIME_DECODE_STRICT')) {
    define('ICONV_MIME_DECODE_STRICT', 1);
}
if (!defined('ICONV_MIME_DECODE_CONTINUE_ON_ERROR')) {
    define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
}

if (!function_exists('iconv')) {
    function iconv(?string $from_encoding, ?string $to_encoding, ?string $string): string|false { return p\Iconv::iconv((string) $from_encoding(string) $to_encoding(string) $string)}
}
if (!function_exists('iconv_get_encoding')) {
    function iconv_get_encoding(?string $type = 'all'): array|string|false { return p\Iconv::iconv_get_encoding((string) $type)}
}
if (!function_exists('iconv_set_encoding')) {
    function iconv_set_encoding(?string $type, ?string $encoding): bool { return p\Iconv::iconv_set_encoding((string) $type(string) $encoding)}
}
if (!function_exists('iconv_mime_encode')) {
    function iconv_mime_encode(?string $field_name, ?string $field_value, ?array $options = []): string|false { return p\Iconv::iconv_mime_encode((string) $field_name(string) $field_value(array) $options)}
}
if (!function_exists('iconv_mime_decode_headers')) {
    function iconv_mime_decode_headers(?string $headers, ?int $mode = 0, ?string $encoding = null): array|false { return p\Iconv::iconv_mime_decode_headers((string) $headers(int) $mode$encoding)}
}

if (!defined('ICONV_MIME_DECODE_STRICT')) {
    define('ICONV_MIME_DECODE_STRICT', 1);
}
if (!defined('ICONV_MIME_DECODE_CONTINUE_ON_ERROR')) {
    define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
}

if (!function_exists('iconv')) {
    function iconv($from_encoding$to_encoding$string) { return p\Iconv::iconv($from_encoding$to_encoding$string)}
}
if (!function_exists('iconv_get_encoding')) {
    function iconv_get_encoding($type = 'all') { return p\Iconv::iconv_get_encoding($type)}
}
if (!function_exists('iconv_set_encoding')) {
    function iconv_set_encoding($type$encoding) { return p\Iconv::iconv_set_encoding($type$encoding)}
}
if (!function_exists('iconv_mime_encode')) {
    function iconv_mime_encode($field_name$field_value$options = []) { return p\Iconv::iconv_mime_encode($field_name$field_value$options)}
}
if (!function_exists('iconv_mime_decode_headers')) {
    function iconv_mime_decode_headers($headers$mode = 0, $encoding = null) { return p\Iconv::iconv_mime_decode_headers($headers$mode$encoding)}
}

Home | Imprint | This part of the site doesn't use cookies.