php 基於gbk和 Ascii把漢字轉換爲拼音

在php開發中有把漢字轉換爲拼音的需求php 這裏主要說明Ascii和gbk 格式的漢字轉爲拼音的內容,若是你是utf-8的,那就經過iconv()函數轉utf-8爲gbk,在進行拼音轉換html //Ascii轉拼音 function asc_to_pinyin($asc,$pyarr){ if($asc<128){ return chr($asc); }elseif(isset($pyarr[
相關文章
相關標籤/搜索