How is a dash replaced with a space in a variable? Using preg_replace or ereg_replace??
And what is the pattern match??
you can use str_replace like
<? $string= "This-is-a-string-with-dashes"; $newstring = str_replace("-", " ", $string); echo $newstring; ?>
will output
This is a string with dashes