2009-12-18

php的匹配图片的正则

提取图片

if(preg_match('{}x',$content,$matchs)) $match[1]; }

顺便加个方法strip_tags,可以去除内容中的标签,返回纯文本.

0 评论:

发表评论