2011年12月8日

摘要: // 用preg_match 模仿实现 preg_match_allfunction custom_preg_match_all($pattern, $subject){ $offset = 0; $match_count = 0; while(preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, $offset)) { // Increment counter $match_count++; // Get byte offset and byte l... 阅读全文
posted @ 2011-12-08 14:31 天空尚兰 阅读(222) 评论(0) 推荐(0)

导航