Avent

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年1月3日

摘要: $content = $info['content']; $preg="/src=['\"]?(.*?)['\"]/" ; preg_match_all($preg, $content, $matches); $imgArr = array_unique($matches);//去除重复的值 echo count($imgArr[0]);//计数 阅读全文
posted @ 2014-01-03 09:48 Avent 阅读(251) 评论(0) 推荐(0) 编辑