织梦dedecms 调用文章图片数功能
function BodyImgNum($aid){global $dsql;$sql = select aid,body from dede_addonarticle where aid=$aid ;$arcRow = $dsql-GetOne($sql);$body = $arcRow[body];$img_array = array();$patte=/[img|IMG].*?src=[\|\](.*?(?:[\.gif|\.jpg]))[\|\].*?[\/]?/i;preg_match...