close

 <?php

  $input = iconv("BIG5", "UTF-8", $input);

  $pattern = '/[\x{4e00}-\x{9fa5}]+/u';

  preg_match_all ( $pattern, $input, $matches );

 ?>

 紀錄一下~

 這個網站 有中文字的 unicode 代碼

 研究好久...崩潰= =

 p.s CJK - 中日韓的漢字 ( Chinese Hanzi / Japanese Kanji / Korean Hanja )

arrow
arrow
    全站熱搜

    maxis1718 發表在 痞客邦 留言(0) 人氣()