PHP 5.4.33 Released

iconv_get_encoding

(PHP 4 >= 4.0.5, PHP 5)

iconv_get_encodingRetrieve internal configuration variables of iconv extension

Descrierea

mixed iconv_get_encoding ([ string $type = "all" ] )

Retrieve internal configuration variables of iconv extension.

Parametri

type

The value of the optional type can be:

  • all
  • input_encoding
  • output_encoding
  • internal_encoding

Valorile întoarse

Returns the current value of the internal configuration variable if successful sau FALSE în cazul eșecului.

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

Exemple

Example #1 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>

Exemplul de mai sus va afișa:

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

Vedeți de asemenea

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top