$string="how-3981-make-scarecrow";
$test = str_replace("-", " ", $string);
echo $test;
Here i want to remove dash with space this is not working. can anyone help me.
This is possible in php we remove this..
Thanks
$string="how-3981-make-scarecrow";
$test = str_replace("-", " ", $string);
echo $test;
Here i want to remove dash with space this is not working. can anyone help me.
This is possible in php we remove this..
Thanks
You are missing the dollarsign in your echo
$string="how-3981-make-scarecrow";
$test = str_replace("-", " ", $string);
echo $test;
By the way, there are a lots of SO links with similar questions: