|
PHP5中文手册
mb_encode_numericentity(PHP 4 >= 4.0.6, PHP 5) mb_encode_numericentity — Encode character to HTML numeric string reference 说明
string mb_encode_numericentity
( string $str
, array $convmap
[, string $encoding
] )
mb_encode_numericentity() converts specified character codes in string str from HTML numeric character reference to character code. It returns converted string. convmap is array specifies code area to convert. encoding is character encoding.
Example#1 convmap example
$convmap = array (
Example#2 mb_encode_numericentity() example
<?php See also mb_decode_numericentity(). |