[問題] length (unicode string)?
$str = "中文"; # in utf-8
length($str) => 6
length會傳回byte length
有什麼辦法(CPAN) 可以傳回length of character
$str = "abc中文" # in utf-8
length($str) => 5 ......how?
--
PLUR
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 84.162.110.117
討論串 (同標題文章)