PHP 計算中文與英文字數. $encoding = mb_detect_encoding($text); $result = array( 'count_cn' => 0, 'count_en' => 0, ); $text_cn = preg_replace("/[^\p{Han}\?
確定! 回上一頁