Answers for "how to delete dash form the string 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 "how to delete dash form the string php"

Browse Popular Code Answers by Language