摘要: $str = "abcdef啊啊吧啊";function my_sub($str, $st ,$len){ $ret = ""; for( $st; $len > 0; $st++){ $cStr = $str[$st]; if( ord( $cStr ) > 127 ){ $cStr = substr($str, $st, 3); $st += 2; } $len -= 1; $ret .= $cStr; } return $ret;} echo my_s... 阅读全文
posted @ 2014-01-07 17:01 ﹏Sakura 阅读(239) 评论(0) 推荐(0)
摘要: w = $w; $this->isEnd = $isEnd; } } public function insert( $str ){ $len = strlen($str); if(!$len) return ; $scope = $this; for( $i = 0; $i 127 ){ $cStr = substr($str, $i, 3); $i += 2; } $scope... 阅读全文
posted @ 2014-01-07 15:59 ﹏Sakura 阅读(529) 评论(0) 推荐(0)