Answers for "can't remove dash from a string of words php"

PHP
0

php remove dashes from string

//replace dashes (-) with spaces ( )  
$string="text-with-dashes";
//php string replace
$test = str_replace("-", " ", $string);
Posted by: Guest on September-01-2020

Code answers related to "can't remove dash from a string of words php"

Browse Popular Code Answers by Language