if(empty($add['titlepic'])){
$str = $add['newstext'];
$isMatched = preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $str, $matches);
$add['titlepic'] = $matches[1];
}
帝國cms獲取內容裏面的圖片 php
if(empty($add['titlepic'])){
$str = $add['newstext'];
$isMatched = preg_match("/<img .*?(?=src)src=\"([^\"]+)\"/si", $str, $matches);
$add['titlepic'] = $matches[1];
}
微信
支付寶
本文作者: 紅穆
本文鏈接: https://www.4s5.cn/cht/archives/273.html
版權說明:本文爲原創文章,未經授權禁止任何形式的轉載、採集、鏡像,違者必究。如需轉載請註明出處並保留原文鏈接。
網站管理員 · 感謝閱讀,更多精彩內容敬請關注