摘要:
/** * $str 原始中文字符串 * $encoding 原始字符串的编码,默认GBK * $prefix 编码后的前缀,默认"&#" * $postfix 编码后的后缀,默认";" */function unicode_encode($str, $encoding = 'GBK', $prefix = '&#', $postfix = ';') { $str = iconv($encoding, 'UCS-2', $str); $arrstr = str_split($ 阅读全文
posted @ 2013-07-25 18:02
toxic
阅读(43906)
评论(0)
推荐(2)

浙公网安备 33010602011771号