Answers for "remove dashs 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

Browse Popular Code Answers by Language