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];
}
发表评论