有一些網址,例如11162_sport.html
,11451_sport.html
,11245_sport.html
或231sport.html
, 我要當像XXXXX_sport.html
的URL,然後取代他們進入11162_football.html
,11451_football.html
,11245_football.html
和231sport.html
沒有變化。PHP的替代問題
如何替換它們,$newurl = preg_replace("_sport.html","_football.html",$url)
?謝謝。