Code: Select all
$url = 'chicago_bears_tickets.html';
$url = str_replace('/','',$url);
$url = str_replace('_tickets.html','',$url);
$url = str_replace('_',' ',$url);
output : chicago bearsis it possible?
thanks
Moderator: General Moderators
Code: Select all
$url = 'chicago_bears_tickets.html';
$url = str_replace('/','',$url);
$url = str_replace('_tickets.html','',$url);
$url = str_replace('_',' ',$url);
output : chicago bearsCode: Select all
$url = strtr($url, array('/'=>'', 'tickets.html'=>'', '_'=>' ');
$url = trim($url);Code: Select all
$array_find = array("/", "_tickets.html", "_");
$array_replace= array("", "", "");
$url = strr_replace($array_find, $array_replace, $url);