(PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8)
iconv_get_encoding — 获取 iconv 扩展的内部配置变量
type
选项 type
的值可以是:
示例 #1 iconv_get_encoding() 示例
<pre>
<?php
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");
var_dump(iconv_get_encoding('all'));
?>
</pre>
以上示例会输出:
Array ( [input_encoding] => ISO-8859-1 [output_encoding] => ISO-8859-1 [internal_encoding] => UTF-8 )