if(empty($add['titlepic'])){
$str = $add['newstext'];
$isMatched = preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $str, $matches);
$add['titlepic'] = $matches[1];
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
if(empty($add['titlepic'])){
$str = $add['newstext'];
$isMatched = preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $str, $matches);
$add['titlepic'] = $matches[1];
}
暂无评论内容