Forum Moderators: coopster
I know I can use str_replace to do most the work, but then I have to make sure I name every potential charachter, which seems excessive.
Any suggestions?
You would use something like:
$string = preg_replace("/\W/","-",$string);
which would replace all NON alphanumeric characters with a -
You can build arrays with all the various complex rules you'd like in them. Good luck.
See: [hu.php.net...]