首页 >函数列表 >iconv_get_encoding

iconv_get_encoding

iconv_get_encoding

(PHP 4 >= 4.0.5, PHP 5)

iconv_get_encodingRetrieve internal configuration variables of iconv extension

说明

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

Retrieve internal configuration variables of iconv extension.

参数

type

The value of the optional type can be:

  • all
  • input_encoding
  • output_encoding
  • internal_encoding

返回值

Returns the current value of the internal configuration variable if successful 或者在失败时返回 FALSE.

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

范例

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>

以上例程会输出:

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

参见


  • iconv
  • iconv_get_encoding
  • iconv_mime_decode
  • iconv_mime_decode_headers
  • iconv_mime_encode
  • iconv_set_encoding
  • iconv_strlen
  • iconv_strpos
  • iconv_strrpos
  • iconv_substr
  • ob_iconv_handler
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道