|
PHP5中文手册
mb_convert_encoding(PHP 4 >= 4.0.6, PHP 5) mb_convert_encoding — Convert character encoding 说明
string mb_convert_encoding
( string $str
, string $to_encoding
[, mixed $from_encoding
] )
mb_convert_encoding() converts character encoding of string str from from_encoding to to_encoding . str : String to be converted. from_encoding is specified by character code name before conversion. it can be array or string - comma separated enumerated list. If it is not specified, the internal encoding will be used.
Example#1 mb_convert_encoding() example
<?php See also mb_detect_order(). |