Php Remove Dashes From String

[Solved] Php Remove Dashes From String | Php - Code Explorer | yomemimo.com
Question : php remove dashes from string

Answered by : vic20

//replace dashes (-) with spaces ( )
$string="text-with-dashes";
//php string replace
$test = str_replace("-", " ", $string);

Source : https://stackoverflow.com/questions/32883049/how-to-remove-dash-form-any-string-using-php/32883342 | Last Update : Tue, 08 Sep 20

Answers related to php remove dashes from string

Code Explorer Popular Question For Php