if(empty($add['titlepic'])){
$str = $add['newstext'];
$isMatched = preg_match("/<img .*?(?=src)src="([^"]+)"/si", $str, $matches);
$add['titlepic'] = $matches[1];
}
if(empty($add['titlepic'])){
$str = $add['newstext'];
$isMatched = preg_match("/<img .*?(?=src)src="([^"]+)"/si", $str, $matches);
$add['titlepic'] = $matches[1];
}
本文是由用户"游客"发布,所有内容的版权归原作者所有。