已知调用body中的图片sql标签如下:
sql标签:
[field:id runphp='yes'] $aid = @me; $row = $GLOBALS['dsql']->GetOne("Select body From `dede_addonproduct` where aid='$aid' ");me ="{$row['body']}"; [/field:id] 提取body中img字段的函数如下:
function GetFirstImg($str){ $preg = "/<img.*?src=[\'\"](.+?)[\'\"].*?>/i"; preg_match_all($preg, $str, $match); //print_r($match); return $match[1][0];} 
请问下,如写整合一个完整的标签能调用出body中的图片字段<img......./>dede sql function