php網頁是繁體字怎麼辦

2020-07-16 10:06:49

zh-Hans:語言限制匹配規範,表示簡體中文。適用區域範圍是全宇宙用中文簡體的地方,內容包括各種用簡體的方言等。

<?php
/*
 * define zh convert functions
 * 2017-4-28 use str_replace for speed
 * zh_hans_to_zh_hant():簡體到繁體轉換
 * zh_hant_to_zh_hans():繁體到簡體轉換
 * zh():自動判斷預設語言和當前語言,根據需要轉換

 */
class ZhConvert{

    /* *
     * 中文簡繁體切換
     * zh-hans為簡體中文 zh-hant為繁體中文
     * $input 需要轉換的文字
     * $change_language_code 轉換語言程式碼
     * $current_language_code 當前語言程式碼
     * */
    public static function zh($input,$change_language_code = 'zh-hant',$current_language_code = 'zh-hans') {
        if ($change_language_code == $current_language_code) {//轉換語言與當前語言相同
            $output = $input;//不轉換
        } elseif ($change_language_code == 'zh-hans' && $current_language_code == 'zh-hant') {//轉換簡體、當前繁體
            $output = self::zh_hant_to_zh_hans($input);//繁體轉簡體
        } elseif ($change_language_code == 'zh-hant' && $current_language_code == 'zh-hans') {//轉換繁體、當前簡體
            $output = self::zh_hans_to_zh_hant($input);//簡體轉繁體
        } else {
            $output = $input;//不轉換
        }
        return $output;
    }


    /* *
     * 中文簡繁體自動切換
     * zh-hans為簡體中文 zh-hant為繁體中文
     * $input 需要轉換的文字
     * $current_language_code 當前語言程式碼
     * */
    public static function zh_auto($input,$current_language_code = 'zh-hans') {
        if ($current_language_code == 'zh-hant') {//轉換簡體、當前繁體
            $output = self::zh_hant_to_zh_hans($input);//繁體轉簡體
        } elseif ($current_language_code == 'zh-hans') {//轉換繁體、當前簡體
            $output = self::zh_hans_to_zh_hant($input);//簡體轉繁體
        } else {
            $output = $input;//不轉換
        }
        return $output;
    }


    /* *
     * 老方法
     * */
    public static function zh_hans_to_zh_hant_old($input) {//簡體到繁體的函數,$input是需要轉的字串,可以包含數位、字母、簡體繁體漢字等
        $array = self::get_array_zh_hans_to_zh_hant();//簡體、繁體對照表
        if(trim($input)==''){ //輸入為空則返回空字串
            return '';
        }
        $output = '';
        $count = mb_strlen($input,'utf-8'); //按照utf-8字元計數
        for($i = 0; $i <= $count; $i++){ //逐個字元處理
            $jchar = mb_substr($input,$i,1,'utf-8'); //分離出一個需要處理的字元
            $fchar = isset($array[$jchar])?$array[$jchar]:$jchar; //如果在上面的對照陣列中就轉換,否則原樣不變
            $output .= $fchar; //逐個字元新增到輸出
        }
        return $output;//返回輸出
    }


    /* *
     * 新方法
     * 改用str_replace函數來替代老方法的迴圈方式
     * */
    public static function zh_hans_to_zh_hant($input) {//簡體到繁體的函數,$input是需要轉的字串,可以包含數位、字母、簡體繁體漢字等
        $array = self::get_array_zh_hans_to_zh_hant();//簡體、繁體對照表
        $array_zh_hans = array_keys($array);
        $array_zh_hant = array_values($array);
        if(trim($input)==''){ //輸入為空則返回空字串
            return '';
        }
        $output = str_replace($array_zh_hans, $array_zh_hant, $input);
        return $output;//返回輸出
    }


    /* *
     * 老方法
     * */
    public static function zh_hant_to_zh_hans_old($input) {//繁體到簡體的函數,$input是需要轉的字串,可以包含數位、字母、簡體繁體漢字等
        $array = self::get_array_zh_hans_to_zh_hant();//簡體、繁體對照表
        $array = array_flip($array); //如果需要繁體到簡體的轉換,只需要用一個array_flip函數來對調key和value
        if(trim($input)==''){ //輸入為空則返回空字串
            return '';
        }
        $output = '';
        $count = mb_strlen($input,'utf-8'); //按照utf-8字元計數
        for($i = 0; $i <= $count; $i++){ //逐個字元處理
            $fchar = mb_substr($input,$i,1,'utf-8'); //分離出一個需要處理的字元
            $jchar = isset($array[$fchar])?$array[$fchar]:$fchar; //如果在上面的對照陣列中就轉換,否則原樣不變
            $output .= $jchar; //逐個字元新增到輸出
        }
        return $output;//返回輸出
    }


    /* *
     * 新方法
     * 改用str_replace函數來替代老方法的迴圈方式
     * */
    public static function zh_hant_to_zh_hans($input) {//繁體到簡體的函數,$input是需要轉的字串,可以包含數位、字母、簡體繁體漢字等
        $array = self::get_array_zh_hant_to_zh_hans();//簡體、繁體對照表
        $array_zh_hant = array_keys($array);
        $array_zh_hans = array_values($array);
        if(trim($input)==''){ //輸入為空則返回空字串
            return '';
        }
        $output = str_replace($array_zh_hant, $array_zh_hans, $input);
        return $output;//返回輸出
    }


    //1275個簡體、繁體對照表做成陣列反轉+xx個繁體到簡體的陣列元素
    private static function get_array_zh_hant_to_zh_hans() {
        $array = self::get_array_zh_hans_to_zh_hant();//1275個簡體、繁體對照表做成陣列
        $array = array_flip($array);//交換陣列中的鍵和值
        $array['週'] = '週';
        $array['髮'] = '發';
        $array['噁'] = '惡';
        $array['麵'] = '麵';
        $array['乾'] = '乾';
        $array['佈'] = '布';
        $array['迴'] = '回';
        $array['徵'] = '徵';
        $array['穫'] = '獲';
        $array['穀'] = '谷';
        $array['鬍'] = '胡';
        $array['鬚'] = '須';
        $array['閒'] = '閒';
        $array['鬆'] = '松';
        $array['姦'] = '奸';
        $array['鬱'] = '鬱';
        $array['製'] = '制';
        $array['餘'] = '餘';
        $array['嚮'] = '向';
        $array['繫'] = '系';
        $array['罎'] = '壇';
        $array['檯'] = '台';
        $array['颱'] = '台';
        $array['捨'] = '捨';
        $array['籤'] = '簽';
        $array['僕'] = '僕';
        $array['闢'] = '闢';
        $array['衊'] = '蔑';
        $array['濛'] = '蒙';
        $array['矇'] = '蒙';
        $array['儘'] = '盡';
        $array['薑'] = '薑';
        $array['颳'] = '刮';
        $array['噹'] = '當';
        $array['衝'] = '衝';
        $array['彆'] = '別';
        $array['臺'] = '台';
        $array['瀏'] = '瀏';
        $array['號'] = '號';
        $array['產'] = '產';
        $array['紘'] = '紘';
        $array['財'] = '財';
        $array['恆'] = '恆';
        $array['啓'] = '啟';
        $array['錡'] = '錡';
        $array['酈'] = '麗';
        return $array;
    }


    //1275個簡體、繁體對照表做成陣列
    private static function get_array_zh_hans_to_zh_hant() {
        $array = array(
            '皚' => '皚',
            '藹' => '藹',
            '礙' => '礙',
            '愛' => '愛',
            '翱' => '翺',
            '襖' => '襖',
            '奧' => '奧',
            '壩' => '壩',
            '罷' => '罷',
            '擺' => '擺',
            '敗' => '敗',
            '頒' => '頒',
            '辦' => '辦',
            '絆' => '絆',
            '幫' => '幫',
            '綁' => '綁',
            '鎊' => '鎊',
            '謗' => '謗',
            '剝' => '剝',
            '飽' => '飽',
            '寶' => '寶',
            '報' => '報',
            '鮑' => '鮑',
            '輩' => '輩',
            '貝' => '貝',
            '鋇' => '鋇',
            '狽' => '狽',
            '備' => '備',
            '憊' => '憊',
            '繃' => '繃',
            '筆' => '筆',
            '畢' => '畢',
            '斃' => '斃',
            '閉' => '閉',
            '邊' => '邊',
            '編' => '編',
            '貶' => '貶',
            '變' => '變',
            '辯' => '辯',
            '辮' => '辮',
            '鱉' => '鼈',
            '癟' => '癟',
            '瀕' => '瀕',
            '濱' => '濱',
            '賓' => '賓',
            '擯' => '擯',
            '餅' => '餅',
            '撥' => '撥',
            '缽' => '缽',
            '鉑' => '鉑',
            '駁' => '駁',
            '蔔' => '蔔',
            '補' => '補',
            '參' => '參',
            '蠶' => '蠶',
            '殘' => '殘',
            '慚' => '慚',
            '慘' => '慘',
            '燦' => '燦',
            '蒼' => '蒼',
            '艙' => '艙',
            '倉' => '倉',
            '滄' => '滄',
            '廁' => '廁',
            '側' => '側',
            '冊' => '冊',
            '測' => '測',
            '層' => '層',
            '詫' => '詫',
            '攙' => '攙',
            '摻' => '摻',
            '蟬' => '蟬',
            '饞' => '饞',
            '讒' => '讒',
            '纏' => '纏',
            '鏟' => '鏟',
            '產' => '産',
            '闡' => '闡',
            '顫' => '顫',
            '場' => '場',
            '嚐' => '嘗',
            '長' => '長',
            '償' => '償',
            '腸' => '腸',
            '廠' => '廠',
            '暢' => '暢',
            '鈔' => '鈔',
            '車' => '車',
            '徹' => '徹',
            '塵' => '塵',
            '陳' => '陳',
            '襯' => '襯',
            '撐' => '撐',
            '稱' => '稱',
            '懲' => '懲',
            '誠' => '誠',
            '騁' => '騁',
            '癡' => '癡',
            '遲' => '遲',
            '馳' => '馳',
            '恥' => '恥',
            '齒' => '齒',
            '熾' => '熾',
            '衝' => '沖',
            '蟲' => '蟲',
            '寵' => '寵',
            '疇' => '疇',
            '躊' => '躊',
            '籌' => '籌',
            '綢' => '綢',
            '醜' => '醜',
            '櫥' => '櫥',
            '廚' => '廚',
            '鋤' => '鋤',
            '雛' => '雛',
            '礎' => '礎',
            '儲' => '儲',
            '觸' => '觸',
            '處' => '處',
            '傳' => '傳',
            '瘡' => '瘡',
            '闖' => '闖',
            '創' => '創',
            '錘' => '錘',
            '純' => '純',
            '綽' => '綽',
            '辭' => '辭',
            '詞' => '詞',
            '賜' => '賜',
            '聰' => '聰',
            '蔥' => '蔥',
            '囪' => '囪',
            '從' => '從',
            '叢' => '叢',
            '湊' => '湊',
            '竄' => '竄',
            '錯' => '錯',
            '達' => '達',
            '帶' => '帶',
            '貸' => '貸',
            '擔' => '擔',
            '單' => '單',
            '鄲' => '鄲',
            '撣' => '撣',
            '膽' => '膽',
            '憚' => '憚',
            '誕' => '誕',
            '彈' => '彈',
            '當' => '當',
            '擋' => '擋',
            '黨' => '黨',
            '盪' => '蕩',
            '檔' => '檔',
            '搗' => '搗',
            '島' => '島',
            '禱' => '禱',
            '導' => '導',
            '盜' => '盜',
            '燈' => '燈',
            '鄧' => '鄧',
            '敵' => '敵',
            '滌' => '滌',
            '遞' => '遞',
            '締' => '締',
            '點' => '點',
            '墊' => '墊',
            '電' => '電',
            '澱' => '澱',
            '釣' => '釣',
            '調' => '調',
            '疊' => '疊',
            '諜' => '諜',
            '疊' => '疊',
            '釘' => '釘',
            '頂' => '頂',
            '錠' => '錠',
            '訂' => '訂',
            '東' => '東',
            '動' => '動',
            '棟' => '棟',
            '凍' => '凍',
            '鬥' => '鬥',
            '犢' => '犢',
            '獨' => '獨',
            '讀' => '讀',
            '賭' => '賭',
            '鍍' => '鍍',
            '鍛' => '鍛',
            '斷' => '斷',
            '緞' => '緞',
            '兌' => '兌',
            '隊' => '隊',
            '對' => '對',
            '噸' => '噸',
            '頓' => '頓',
            '鈍' => '鈍',
            '奪' => '奪',
            '鵝' => '鵝',
            '額' => '額',
            '訛' => '訛',
            '惡' => '惡',
            '餓' => '餓',
            '兒' => '兒',
            '爾' => '爾',
            '餌' => '餌',
            '貳' => '貳',
            '發' => '發',
            '罰' => '罰',
            '閥' => '閥',
            '琺' => '琺',
            '礬' => '礬',
            '釩' => '釩',
            '煩' => '煩',
            '範' => '範',
            '販' => '販',
            '飯' => '飯',
            '訪' => '訪',
            '紡' => '紡',
            '飛' => '飛',
            '廢' => '廢',
            '費' => '費',
            '紛' => '紛',
            '墳' => '墳',
            '奮' => '奮',
            '憤' => '憤',
            '糞' => '糞',
            '豐' => '豐',
            '楓' => '楓',
            '鋒' => '鋒',
            '風' => '風',
            '瘋' => '瘋',
            '馮' => '馮',
            '縫' => '縫',
            '諷' => '諷',
            '鳳' => '鳳',
            '膚' => '膚',
            '輻' => '輻',
            '撫' => '撫',
            '輔' => '輔',
            '賦' => '賦',
            '復' => '複',
            '負' => '負',
            '訃' => '訃',
            '婦' => '婦',
            '縛' => '縛',
            '該' => '該',
            '鈣' => '鈣',
            '蓋' => '蓋',
            '乾' => '幹',
            '趕' => '趕',
            '稈' => '稈',
            '贛' => '贛',
            '岡' => '岡',
            '剛' => '剛',
            '鋼' => '鋼',
            '綱' => '綱',
            '崗' => '崗',
            '皋' => '臯',
            '鎬' => '鎬',
            '擱' => '擱',
            '鴿' => '鴿',
            '閣' => '閣',
            '鉻' => '鉻',
            '個' => '個',
            '給' => '給',
            '龔' => '龔',
            '宮' => '宮',
            '鞏' => '鞏',
            '貢' => '貢',
            '鉤' => '鈎',
            '溝' => '溝',
            '構' => '構',
            '購' => '購',
            '夠' => '夠',
            '蠱' => '蠱',
            '顧' => '顧',
            '剮' => '剮',
            '關' => '關',
            '觀' => '觀',
            '館' => '館',
            '慣' => '慣',
            '貫' => '貫',
            '廣' => '廣',
            '規' => '規',
            '矽' => '矽',
            '歸' => '歸',
            '龜' => '龜',
            '閨' => '閨',
            '軌' => '軌',
            '詭' => '詭',
            '櫃' => '櫃',
            '貴' => '貴',
            '劊' => '劊',
            '輥' => '輥',
            '滾' => '滾',
            '鍋' => '鍋',
            '國' => '國',
            '過' => '過',
            '駭' => '駭',
            '韓' => '韓',
            '漢' => '漢',
            '閡' => '閡',
            '鶴' => '鶴',
            '賀' => '賀',
            '橫' => '橫',
            '轟' => '轟',
            '鴻' => '鴻',
            '紅' => '紅',
            '後' => '後',
            '壺' => '壺',
            '護' => '護',
            '滬' => '滬',
            '戶' => '戶',
            '嘩' => '嘩',
            '華' => '華',
            '畫' => '畫',
            '劃' => '劃',
            '話' => '話',
            '懷' => '懷',
            '壞' => '壞',
            '歡' => '歡',
            '環' => '環',
            '還' => '還',
            '緩' => '緩',
            '換' => '換',
            '喚' => '喚',
            '瘓' => '瘓',
            '煥' => '煥',
            '渙' => '渙',
            '黃' => '黃',
            '謊' => '謊',
            '揮' => '揮',
            '輝' => '輝',
            '毀' => '毀',
            '賄' => '賄',
            '穢' => '穢',
            '會' => '會',
            '燴' => '燴',
            '匯' => '彙',
            '諱' => '諱',
            '誨' => '誨',
            '繪' => '繪',
            '葷' => '葷',
            '渾' => '渾',
            '夥' => '夥',
            '獲' => '獲',
            '貨' => '貨',
            '禍' => '禍',
            '擊' => '擊',
            '機' => '機',
            '積' => '積',
            '飢' => '饑',
            '譏' => '譏',
            '雞' => '雞',
            '績' => '績',
            '緝' => '緝',
            '極' => '極',
            '輯' => '輯',
            '級' => '級',
            '擠' => '擠',
            '幾' => '幾',
            '薊' => '薊',
            '劑' => '劑',
            '濟' => '濟',
            '計' => '計',
            '記' => '記',
            '際' => '際',
            '繼' => '繼',
            '紀' => '紀',
            '夾' => '夾',
            '莢' => '莢',
            '頰' => '頰',
            '賈' => '賈',
            '鉀' => '鉀',
            '價' => '價',
            '駕' => '駕',
            '殲' => '殲',
            '監' => '監',
            '堅' => '堅',
            '箋' => '箋',
            '間' => '間',
            '艱' => '艱',
            '緘' => '緘',
            '繭' => '繭',
            '檢' => '檢',
            '鹼' => '堿',
            '鹼' => '鹼',
            '揀' => '揀',
            '撿' => '撿',
            '簡' => '簡',
            '儉' => '儉',
            '減' => '減',
            '薦' => '薦',
            '檻' => '檻',
            '鑑' => '鑒',
            '踐' => '踐',
            '賤' => '賤',
            '見' => '見',
            '鍵' => '鍵',
            '艦' => '艦',
            '劍' => '劍',
            '餞' => '餞',
            '漸' => '漸',
            '濺' => '濺',
            '澗' => '澗',
            '漿' => '漿',
            '蔣' => '蔣',
            '槳' => '槳',
            '獎' => '獎',
            '講' => '講',
            '醬' => '醬',
            '膠' => '膠',
            '澆' => '澆',
            '驕' => '驕',
            '嬌' => '嬌',
            '攪' => '攪',
            '鉸' => '鉸',
            '矯' => '矯',
            '僥' => '僥',
            '腳' => '腳',
            '餃' => '餃',
            '繳' => '繳',
            '絞' => '絞',
            '轎' => '轎',
            '較' => '較',
            '秸' => '稭',
            '階' => '階',
            '節' => '節',
            '莖' => '莖',
            '驚' => '驚',
            '經' => '經',
            '頸' => '頸',
            '靜' => '靜',
            '鏡' => '鏡',
            '徑' => '徑',
            '痙' => '痙',
            '競' => '競',
            '淨' => '淨',
            '糾' => '糾',
            '廄' => '廄',
            '舊' => '舊',
            '駒' => '駒',
            '舉' => '舉',
            '據' => '據',
            '鋸' => '鋸',
            '懼' => '懼',
            '劇' => '劇',
            '鵑' => '鵑',
            '絹' => '絹',
            '傑' => '傑',
            '潔' => '潔',
            '結' => '結',
            '誡' => '誡',
            '屆' => '屆',
            '緊' => '緊',
            '錦' => '錦',
            '僅' => '僅',
            '謹' => '謹',
            '進' => '進',
            '晉' => '晉',
            '燼' => '燼',
            '盡' => '盡',
            '勁' => '勁',
            '荊' => '荊',
            '覺' => '覺',
            '決' => '決',
            '訣' => '訣',
            '絕' => '絕',
            '鈞' => '鈞',
            '軍' => '軍',
            '駿' => '駿',
            '開' => '開',
            '凱' => '凱',
            '顆' => '顆',
            '殼' => '殼',
            '課' => '課',
            '墾' => '墾',
            '懇' => '懇',
            '摳' => '摳',
            '庫' => '庫',
            '褲' => '褲',
            '誇' => '誇',
            '塊' => '塊',
            '儈' => '儈',
            '寬' => '寬',
            '礦' => '礦',
            '曠' => '曠',
            '況' => '況',
            '虧' => '虧',
            '巋' => '巋',
            '窺' => '窺',
            '饋' => '饋',
            '潰' => '潰',
            '擴' => '擴',
            '闊' => '闊',
            '蠟' => '蠟',
            '臘' => '臘',
            '萊' => '萊',
            '來' => '來',
            '賴' => '賴',
            '藍' => '藍',
            '欄' => '欄',
            '攔' => '攔',
            '籃' => '籃',
            '闌' => '闌',
            '蘭' => '蘭',
            '瀾' => '瀾',
            '讕' => '讕',
            '攬' => '攬',
            '覽' => '覽',
            '懶' => '懶',
            '纜' => '纜',
            '爛' => '爛',
            '濫' => '濫',
            '撈' => '撈',
            '勞' => '勞',
            '澇' => '澇',
            '樂' => '樂',
            '鐳' => '鐳',
            '壘' => '壘',
            '類' => '類',
            '淚' => '淚',
            '籬' => '籬',
            '離' => '離',
            '裡' => '裏',
            '鯉' => '鯉',
            '禮' => '禮',
            '麗' => '麗',
            '厲' => '厲',
            '勵' => '勵',
            '礫' => '礫',
            '歷' => '曆',
            '瀝' => '瀝',
            '隸' => '隸',
            '倆' => '倆',
            '聯' => '聯',
            '蓮' => '蓮',
            '連' => '連',
            '鐮' => '鐮',
            '憐' => '憐',
            '漣' => '漣',
            '簾' => '簾',
            '斂' => '斂',
            '臉' => '臉',
            '鏈' => '鏈',
            '戀' => '戀',
            '鍊' => '煉',
            '練' => '練',
            '糧' => '糧',
            '涼' => '涼',
            '兩' => '兩',
            '輛' => '輛',
            '諒' => '諒',
            '療' => '療',
            '遼' => '遼',
            '鐐' => '鐐',
            '獵' => '獵',
            '臨' => '臨',
            '鄰' => '鄰',
            '鱗' => '鱗',
            '凜' => '凜',
            '賃' => '賃',
            '齡' => '齡',
            '鈴' => '鈴',
            '凌' => '淩',
            '靈' => '靈',
            '嶺' => '嶺',
            '領' => '領',
            '餾' => '餾',
            '劉' => '劉',
            '龍' => '龍',
            '聾' => '聾',
            '嚨' => '嚨',
            '籠' => '籠',
            '壟' => '壟',
            '攏' => '攏',
            '隴' => '隴',
            '樓' => '樓',
            '婁' => '婁',
            '摟' => '摟',
            '簍' => '簍',
            '蘆' => '蘆',
            '盧' => '盧',
            '顱' => '顱',
            '廬' => '廬',
            '爐' => '爐',
            '擄' => '擄',
            '滷' => '鹵',
            '虜' => '虜',
            '魯' => '魯',
            '賂' => '賂',
            '祿' => '祿',
            '錄' => '錄',
            '陸' => '陸',
            '驢' => '驢',
            '呂' => '呂',
            '鋁' => '鋁',
            '侶' => '侶',
            '屢' => '屢',
            '縷' => '縷',
            '慮' => '慮',
            '濾' => '濾',
            '綠' => '綠',
            '巒' => '巒',
            '攣' => '攣',
            '孿' => '孿',
            '灤' => '灤',
            '亂' => '亂',
            '掄' => '掄',
            '輪' => '輪',
            '倫' => '倫',
            '崙' => '侖',
            '淪' => '淪',
            '綸' => '綸',
            '論' => '論',
            '蘿' => '蘿',
            '羅' => '羅',
            '邏' => '邏',
            '鑼' => '鑼',
            '籮' => '籮',
            '騾' => '騾',
            '駱' => '駱',
            '絡' => '絡',
            '媽' => '媽',
            '瑪' => '瑪',
            '碼' => '碼',
            '螞' => '螞',
            '馬' => '馬',
            '罵' => '罵',
            '嗎' => '嗎',
            '買' => '買',
            '麥' => '麥',
            '賣' => '賣',
            '邁' => '邁',
            '脈' => '脈',
            '瞞' => '瞞',
            '饅' => '饅',
            '蠻' => '蠻',
            '滿' => '滿',
            '謾' => '謾',
            '貓' => '貓',
            '錨' => '錨',
            '鉚' => '鉚',
            '貿' => '貿',
            '麼' => '麼',
            '霉' => '黴',
            '沒' => '沒',
            '鎂' => '鎂',
            '門' => '門',
            '悶' => '悶',
            '們' => '們',
            '錳' => '錳',
            '夢' => '夢',
            '謎' => '謎',
            '彌' => '彌',
            '覓' => '覓',
            '綿' => '綿',
            '緬' => '緬',
            '廟' => '廟',
            '滅' => '滅',
            '憫' => '憫',
            '閩' => '閩',
            '鳴' => '鳴',
            '銘' => '銘',
            '謬' => '謬',
            '謀' => '謀',
            '畝' => '畝',
            '鈉' => '鈉',
            '納' => '納',
            '難' => '難',
            '撓' => '撓',
            '腦' => '腦',
            '惱' => '惱',
            '鬧' => '鬧',
            '餒' => '餒',
            '膩' => '膩',
            '攆' => '攆',
            '捻' => '撚',
            '釀' => '釀',
            '鳥' => '鳥',
            '聶' => '聶',
            '齧' => '齧',
            '鑷' => '鑷',
            '鎳' => '鎳',
            '檸' => '檸',
            '獰' => '獰',
            '寧' => '甯',
            '擰' => '擰',
            '濘' => '濘',
            '鈕' => '鈕',
            '紐' => '紐',
            '膿' => '膿',
            '濃' => '濃',
            '農' => '農',
            '瘧' => '瘧',
            '諾' => '諾',
            '歐' => '歐',
            '鷗' => '鷗',
            '毆' => '毆',
            '嘔' => '嘔',
            '漚' => '漚',
            '盤' => '盤',
            '龐' => '龐',
            '國' => '國',
            '愛' => '愛',
            '賠' => '賠',
            '噴' => '噴',
            '鵬' => '鵬',
            '騙' => '騙',
            '飄' => '飄',
            '頻' => '頻',
            '貧' => '貧',
            '蘋' => '蘋',
            '憑' => '憑',
            '評' => '評',
            '潑' => '潑',
            '頗' => '頗',
            '撲' => '撲',
            '鋪' => '鋪',
            '樸' => '樸',
            '譜' => '譜',
            '臍' => '臍',
            '齊' => '齊',
            '騎' => '騎',
            '豈' => '豈',
            '啟' => '啓',
            '氣' => '氣',
            '棄' => '棄',
            '訖' => '訖',
            '牽' => '牽',
            '扦' => '扡',
            '釺' => '釺',
            '鉛' => '鉛',
            '遷' => '遷',
            '簽' => '簽',
            '謙' => '謙',
            '錢' => '錢',
            '鉗' => '鉗',
            '潛' => '潛',
            '淺' => '淺',
            '譴' => '譴',
            '塹' => '塹',
            '槍' => '槍',
            '嗆' => '嗆',
            '牆' => '牆',
            '薔' => '薔',
            '強' => '強',
            '搶' => '搶',
            '鍬' => '鍬',
            '橋' => '橋',
            '喬' => '喬',
            '僑' => '僑',
            '翹' => '翹',
            '竅' => '竅',
            '竊' => '竊',
            '欽' => '欽',
            '親' => '親',
            '輕' => '輕',
            '氫' => '氫',
            '傾' => '傾',
            '頃' => '頃',
            '請' => '請',
            '慶' => '慶',
            '瓊' => '瓊',
            '窮' => '窮',
            '趨' => '趨',
            '區' => '區',
            '軀' => '軀',
            '驅' => '驅',
            '齲' => '齲',
            '顴' => '顴',
            '權' => '權',
            '勸' => '勸',
            '卻' => '卻',
            '鵲' => '鵲',
            '讓' => '讓',
            '饒' => '饒',
            '擾' => '擾',
            '繞' => '繞',
            '熱' => '熱',
            '韌' => '韌',
            '認' => '認',
            '紉' => '紉',
            '榮' => '榮',
            '絨' => '絨',
            '軟' => '軟',
            '銳' => '銳',
            '閏' => '閏',
            '潤' => '潤',
            '灑' => '灑',
            '薩' => '薩',
            '鰓' => '鰓',
            '賽' => '賽',
            '傘' => '傘',
            '喪' => '喪',
            '騷' => '騷',
            '掃' => '掃',
            '澀' => '澀',
            '殺' => '殺',
            '紗' => '紗',
            '篩' => '篩',
            '曬' => '曬',
            '閃' => '閃',
            '陝' => '陝',
            '贍' => '贍',
            '繕' => '繕',
            '傷' => '傷',
            '賞' => '賞',
            '燒' => '燒',
            '紹' => '紹',
            '賒' => '賒',
            '攝' => '攝',
            '攝' => '懾',
            '設' => '設',
            '紳' => '紳',
            '審' => '審',
            '嬸' => '嬸',
            '腎' => '腎',
            '滲' => '滲',
            '聲' => '聲',
            '繩' => '繩',
            '勝' => '勝',
            '聖' => '聖',
            '師' => '師',
            '獅' => '獅',
            '濕' => '濕',
            '詩' => '詩',
            '屍' => '屍',
            '時' => '時',
            '蝕' => '蝕',
            '實' => '實',
            '識' => '識',
            '駛' => '駛',
            '勢' => '勢',
            '釋' => '釋',
            '飾' => '飾',
            '視' => '視',
            '試' => '試',
            '壽' => '壽',
            '獸' => '獸',
            '樞' => '樞',
            '輸' => '輸',
            '書' => '書',
            '贖' => '贖',
            '屬' => '屬',
            '術' => '術',
            '樹' => '樹',
            '豎' => '豎',
            '數' => '數',
            '帥' => '帥',
            '雙' => '雙',
            '誰' => '誰',
            '稅' => '稅',
            '順' => '順',
            '說' => '說',
            '碩' => '碩',
            '爍' => '爍',
            '絲' => '絲',
            '飼' => '飼',
            '聳' => '聳',
            '慫' => '慫',
            '頌' => '頌',
            '訟' => '訟',
            '誦' => '誦',
            '擻' => '擻',
            '蘇' => '蘇',
            '訴' => '訴',
            '肅' => '肅',
            '雖' => '雖',
            '綏' => '綏',
            '歲' => '歲',
            '孫' => '孫',
            '損' => '損',
            '筍' => '筍',
            '縮' => '縮',
            '瑣' => '瑣',
            '鎖' => '鎖',
            '獺' => '獺',
            '撻' => '撻',
            '抬' => '擡',
            '攤' => '攤',
            '貪' => '貪',
            '癱' => '癱',
            '灘' => '灘',
            '壇' => '壇',
            '譚' => '譚',
            '談' => '談',
            '嘆' => '歎',
            '湯' => '湯',
            '燙' => '燙',
            '濤' => '濤',
            '絛' => '縧',
            '騰' => '騰',
            '謄' => '謄',
            '銻' => '銻',
            '題' => '題',
            '體' => '體',
            '屜' => '屜',
            '條' => '條',
            '貼' => '貼',
            '鐵' => '鐵',
            '廳' => '廳',
            '聽' => '聽',
            '烴' => '烴',
            '銅' => '銅',
            '統' => '統',
            '頭' => '頭',
            '圖' => '圖',
            '塗' => '塗',
            '團' => '團',
            '頹' => '頹',
            '蛻' => '蛻',
            '脫' => '脫',
            '鴕' => '鴕',
            '馱' => '馱',
            '駝' => '駝',
            '橢' => '橢',
            '窪' => '窪',
            '襪' => '襪',
            '彎' => '彎',
            '灣' => '灣',
            '頑' => '頑',
            '萬' => '萬',
            '網' => '網',
            '韋' => '韋',
            '違' => '違',
            '圍' => '圍',
            '為' => '爲',
            '濰' => '濰',
            '維' => '維',
            '葦' => '葦',
            '偉' => '偉',
            '偽' => '僞',
            '緯' => '緯',
            '謂' => '謂',
            '衛' => '衛',
            '溫' => '溫',
            '聞' => '聞',
            '紋' => '紋',
            '穩' => '穩',
            '問' => '問',
            '甕' => '甕',
            '撾' => '撾',
            '蝸' => '蝸',
            '渦' => '渦',
            '窩' => '窩',
            '嗚' => '嗚',
            '鎢' => '鎢',
            '烏' => '烏',
            '誣' => '誣',
            '無' => '無',
            '蕪' => '蕪',
            '吳' => '吳',
            '塢' => '塢',
            '霧' => '霧',
            '務' => '務',
            '誤' => '誤',
            '錫' => '錫',
            '犧' => '犧',
            '襲' => '襲',
            '習' => '習',
            '銑' => '銑',
            '戲' => '戲',
            '細' => '細',
            '蝦' => '蝦',
            '轄' => '轄',
            '峽' => '峽',
            '俠' => '俠',
            '狹' => '狹',
            '廈' => '廈',
            '鍁' => '鍁',
            '鮮' => '鮮',
            '纖' => '纖',
            '鹹' => '鹹',
            '賢' => '賢',
            '銜' => '銜',
            '閒' => '閑',
            '顯' => '顯',
            '險' => '險',
            '現' => '現',
            '獻' => '獻',
            '縣' => '縣',
            '餡' => '餡',
            '羨' => '羨',
            '憲' => '憲',
            '線' => '線',
            '廂' => '廂',
            '鑲' => '鑲',
            '鄉' => '鄉',
            '詳' => '詳',
            '響' => '響',
            '項' => '項',
            '蕭' => '蕭',
            '銷' => '銷',
            '曉' => '曉',
            '嘯' => '嘯',
            '蠍' => '蠍',
            '協' => '協',
            '挾' => '挾',
            '攜' => '攜',
            '脅' => '脅',
            '諧' => '諧',
            '寫' => '寫',
            '瀉' => '瀉',
            '謝' => '謝',
            '鋅' => '鋅',
            '釁' => '釁',
            '興' => '興',
            '洶' => '洶',
            '鏽' => '鏽',
            '繡' => '繡',
            '虛' => '虛',
            '噓' => '噓',
            '須' => '須',
            '許' => '許',
            '緒' => '緒',
            '續' => '續',
            '軒' => '軒',
            '懸' => '懸',
            '選' => '選',
            '癬' => '癬',
            '絢' => '絢',
            '學' => '學',
            '勳' => '勳',
            '詢' => '詢',
            '尋' => '尋',
            '馴' => '馴',
            '訓' => '訓',
            '訊' => '訊',
            '遜' => '遜',
            '壓' => '壓',
            '鴉' => '鴉',
            '鴨' => '鴨',
            '啞' => '啞',
            '亞' => '亞',
            '訝' => '訝',
            '閹' => '閹',
            '菸' => '煙',
            '鹽' => '鹽',
            '嚴' => '嚴',
            '顏' => '顔',
            '閻' => '閻',
            '艷' => '豔',
            '厭' => '厭',
            '硯' => '硯',
            '彥' => '彥',
            '諺' => '諺',
            '驗' => '驗',
            '鴦' => '鴦',
            '楊' => '楊',
            '揚' => '揚',
            '瘍' => '瘍',
            '陽' => '陽',
            '癢' => '癢',
            '養' => '養',
            '樣' => '樣',
            '瑤' => '瑤',
            '搖' => '搖',
            '堯' => '堯',
            '遙' => '遙',
            '窯' => '窯',
            '謠' => '謠',
            '藥' => '藥',
            '爺' => '爺',
            '頁' => '頁',
            '業' => '業',
            '葉' => '葉',
            '醫' => '醫',
            '銥' => '銥',
            '頤' => '頤',
            '遺' => '遺',
            '儀' => '儀',
            '彝' => '彜',
            '蟻' => '蟻',
            '藝' => '藝',
            '億' => '億',
            '憶' => '憶',
            '義' => '義',
            '詣' => '詣',
            '議' => '議',
            '誼' => '誼',
            '譯' => '譯',
            '異' => '異',
            '繹' => '繹',
            '蔭' => '蔭',
            '陰' => '陰',
            '銀' => '銀',
            '飲' => '飲',
            '櫻' => '櫻',
            '嬰' => '嬰',
            '鷹' => '鷹',
            '應' => '應',
            '纓' => '纓',
            '瑩' => '瑩',
            '螢' => '螢',
            '營' => '營',
            '熒' => '熒',
            '蠅' => '蠅',
            '穎' => '穎',
            '喲' => '喲',
            '擁' => '擁',
            '傭' => '傭',
            '癰' => '癰',
            '踴' => '踴',
            '詠' => '詠',
            '湧' => '湧',
            '優' => '優',
            '憂' => '憂',
            '郵' => '郵',
            '鈾' => '鈾',
            '猶' => '猶',
            '遊' => '遊',
            '誘' => '誘',
            '輿' => '輿',
            '魚' => '魚',
            '漁' => '漁',
            '娛' => '娛',
            '與' => '與',
            '嶼' => '嶼',
            '語' => '語',
            '籲' => '籲',
            '御' => '禦',
            '獄' => '獄',
            '譽' => '譽',
            '預' => '預',
            '馭' => '馭',
            '鴛' => '鴛',
            '淵' => '淵',
            '轅' => '轅',
            '園' => '園',
            '員' => '員',
            '圓' => '圓',
            '緣' => '緣',
            '遠' => '遠',
            '願' => '願',
            '約' => '約',
            '躍' => '躍',
            '鑰' => '鑰',
            '岳' => '嶽',
            '粵' => '粵',
            '悅' => '悅',
            '閱' => '閱',
            '雲' => '雲',
            '鄖' => '鄖',
            '勻' => '勻',
            '隕' => '隕',
            '運' => '運',
            '蘊' => '蘊',
            '醞' => '醞',
            '暈' => '暈',
            '韻' => '韻',
            '雜' => '雜',
            '災' => '災',
            '載' => '載',
            '攢' => '攢',
            '暫' => '暫',
            '讚' => '贊',
            '贓' => '贓',
            '髒' => '髒',
            '鑿' => '鑿',
            '棗' => '棗',
            '灶' => '竈',
            '責' => '責',
            '擇' => '擇',
            '則' => '則',
            '澤' => '澤',
            '賊' => '賊',
            '贈' => '贈',
            '扎' => '紮',
            '札' => '劄',
            '軋' => '軋',
            '鍘' => '鍘',
            '閘' => '閘',
            '詐' => '詐',
            '齋' => '齋',
            '債' => '債',
            '氈' => '氈',
            '盞' => '盞',
            '斬' => '斬',
            '輾' => '輾',
            '嶄' => '嶄',
            '棧' => '棧',
            '戰' => '戰',
            '綻' => '綻',
            '張' => '張',
            '漲' => '漲',
            '帳' => '帳',
            '賬' => '賬',
            '脹' => '脹',
            '趙' => '趙',
            '蟄' => '蟄',
            '轍' => '轍',
            '鍺' => '鍺',
            '這' => '這',
            '貞' => '貞',
            '針' => '針',
            '偵' => '偵',
            '診' => '診',
            '鎮' => '鎮',
            '陣' => '陣',
            '掙' => '掙',
            '睜' => '睜',
            '猙' => '猙',
            '幀' => '幀',
            '鄭' => '鄭',
            '證' => '證',
            '織' => '織',
            '職' => '職',
            '執' => '執',
            '紙' => '紙',
            '摯' => '摯',
            '擲' => '擲',
            '幟' => '幟',
            '質' => '質',
            '鐘' => '鍾',
            '終' => '終',
            '種' => '種',
            '腫' => '腫',
            '眾' => '衆',
            '謅' => '謅',
            '軸' => '軸',
            '皺' => '皺',
            '晝' => '晝',
            '驟' => '驟',
            '豬' => '豬',
            '諸' => '諸',
            '誅' => '誅',
            '燭' => '燭',
            '矚' => '矚',
            '囑' => '囑',
            '貯' => '貯',
            '鑄' => '鑄',
            '築' => '築',
            '駐' => '駐',
            '專' => '專',
            '磚' => '磚',
            '轉' => '轉',
            '賺' => '賺',
            '樁' => '樁',
            '莊' => '莊',
            '裝' => '裝',
            '妝' => '妝',
            '壯' => '壯',
            '狀' => '狀',
            '錐' => '錐',
            '贅' => '贅',
            '墜' => '墜',
            '綴' => '綴',
            '諄' => '諄',
            '濁' => '濁',
            '茲' => '茲',
            '資' => '資',
            '漬' => '漬',
            '蹤' => '蹤',
            '綜' => '綜',
            '總' => '總',
            '縱' => '縱',
            '鄒' => '鄒',
            '詛' => '詛',
            '組' => '組',
            '鑽' => '鑽',
            '致' => '緻',
            '鐘' => '鐘',
            '麼' => '麼',
            '為' => '為',
            '只' => '隻',
            '兇' => '兇',
            '準' => '準',
            '啟' => '啟',
            '板' => '闆',
            '裡' => '裡',
            '靂' => '靂',
            '餘' => '餘',
            '鏈' => '鍊',
            '洩' => '洩',
        );
        return $array;
    }


//end
}



?>

以上就是php網頁是繁體字怎麼辦的詳細內容,更多請關注TW511.COM其它相關文章!