what is best solution for this replacing? fast and optimized
my link:
https://example.com/event/123/Kinda Don't Care2 Feat. Jaba/Country Music (1990)
I want clean to:
https://example.com/event/123/Kinda-Dont-Care2-Feat-Jaba/Country-Music-1990
preg_replace('???????', '-', $strUrl);
Edit:
$str1 = "Kinda Don't Care2 Feat. Jaba";
$str2 = "Country Music (1990)"
;
replace to :
$str1 = "Kinda-Dont-Care2-Feat-Jaba";
$str2 = "Country-Music-1990"
;
thanks.