Sorunu yerine php

0 Cevap php

there are some url, like 11162_sport.html, 11451_sport.html, 11245_sport.html or 231sport.html, I want when the url like XXXXX_sport.html then replace them into 11162_football.html, 11451_football.html, 11245_football.html, and 231sport.html has no change.

bunların yerine nasıl, $newurl = preg_replace("_sport.html","_football.html",$url)? Teşekkürler.

0 Cevap