php中文转拼音的代码,='5.0') ? array_combine($_tdatakey, $_tdatavalue) : _array_combine($_tdatakey, $_tdatavalue);arsort($_data);reset($_data);if($_code != 'gb2312') $_string = _u2_utf8_gb($_string);$_res = '';for($i=0; $i160) { $_q = ord(substr($_string, ++$i, 1)); $_p = $_p*256 + $_q - 65536; }$_res .= _pinyin($_p, $_data);}return preg_replace(/[^a-z0-9]*/, '', $_res);}function _pinyin($_num, $_data){if ($_num>0 && $_num$v){ if($v12);$_string .= chr(0x80 | $_c>>6 & 0x3f);$_string .= chr(0x80 | $_c & 0x3f);} elseif($_c >18);$_string .= chr(0x80 | $_c>>12 & 0x3f);$_string .= chr(0x80 | $_c>>6 & 0x3f);$_string .= chr(0x80 | $_c & 0x3f);}return iconv('utf-8', 'gb2312', $_string);}function _array_combine($_arr1, $_arr2){for($i=0; $i
http://www.bkjia.com/phpjc/1087041.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/1087041.htmltecharticlephp中文转拼音的代码, ?php/*** php中文转拼音* 整理:www.jbxue.com 脚本学堂* 日期:2014/2/11*/function pinyin($_string, $_code='gb2312'){$_datakey = a|ai|an...