can anyone help me with the code below, I would like to strip out comas from the URL
http://www.balmanltd.co.uk/products/steering/ball-joints/ball-joint,-drag-link-end/am1148
$str = trim($str);/*remove any unwanted outer spacing*/
$urlkey = preg_replace("/[^0-9a-zA-Z]+/","-",strtolower($str));
$htmlkey = ($htmlext) ? $urlkey.".html" : "";
return array($urlkey,$htmlkey);