php str_replace 替换为什么不成功?

2024-12-15 17:44:26
推荐回答(1个)
回答1:

$fhz=str_replace("src=\"../images/\"","src=\"http://www.weather.com.cn/m/i/city/\"",$fhz);
改为
$fhz=str_replace("src=\"/m2/","src=\"http://www.weather.com.cn/m2/",$fhz);