摘要: 搜集的两个function第一个在我的测试中发现不够好,大部分还是准的// Returns true if $string is valid UTF-8 and false otherwise. function is_utf8_bak($word) { if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{ 阅读全文
posted @ 2011-03-09 23:57 greengnn 阅读(7171) 评论(1) 推荐(0) 编辑