php 正则替换img src

2025-05-23 08:29:03
推荐回答(1个)
回答(1):

应该这样就可以了:

$str = '
';
$str=preg_replace("//i","",$str);
echo $str;

这样得到的HTML代码为:

这应该是你想要的结果哦