PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

iconv_mime_decode_headers> <iconv Functions
Last updated: Sat, 24 Mar 2007

view this page in

iconv_get_encoding

(PHP 4 >= 4.0.5, PHP 5)

iconv_get_encoding — Retrieve internal configuration variables of iconv extension

Popis

mixed iconv_get_encoding ( [string $type] )

Retrieve internal configuration variables of iconv extension.

Seznam parametrů

type

The value of the optional type can be:

all
input_encoding
output_encoding
internal_encoding

Návratové hodnoty

Returns the current value of the internal configuration variable if successful, or FALSE on failure.

If type is omitted or set to "all", iconv_get_encoding() returns an array that stores all these variables.

Příklady

Příklad 750. iconv_get_encoding() example

<pre>
<?php
iconv_set_encoding
("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");
var_dump(iconv_get_encoding('all'));
?>
</pre>

Výše uvedený příklad vypíše:


Array
(
    [input_encoding] => ISO-8859-1
    [output_encoding] => ISO-8859-1
    [internal_encoding] => UTF-8
)


    

Viz také

iconv_set_encoding()
ob_iconv_handler()



add a note add a note User Contributed Notes
iconv_get_encoding
There are no user contributed notes for this page.

iconv_mime_decode_headers> <iconv Functions
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites