时间:2021-07-01 10:21:17 帮助过:4人阅读
$PostsArray[0]['Content'] = preg_replace("/<]*)\" alt=https://www.gxlcms.com/\"([^><]*)>/i",aimg('\\1','\\2'), $PostsArray[0]['Content']);
function aimg($url,$name){
//$name=strstr('gif',$url);
$name2=$name;
$name= strpos($name2,'gif');
if(strstr($url,'.gif')!=false){
//$name='