Answers for "laravel replace character with strip dash"

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 "laravel replace character with strip dash"

Browse Popular Code Answers by Language