permalink
Hey Jason
I have a product / service name that has & in it (eg Hands & Feet) and want to create a permalink in the database - I can get this done no problem using
"".((isset($_POST["ProductName"]))?preg_replace('/[^0-9a-z(),]/i','-',str_replace(array("+","&","'","%","!","?","@","\-","/",".","\"","_","\'","*","#"),"",$_POST["ProductName"])):"")
what it is doing is removing the & and just replacing the spaces with - so Hands & Feet becomes Hands--feet
How would I go about replacing the -- with just - ?