php remove dashes from string

67

php remove dashes from string -

//replace dashes (-) with spaces ( )  
$string="text-with-dashes";
//php string replace
$test = str_replace("-", " ", $string);

Comments

Submit
0 Comments