Show Output
Find and Replace Characters in a String Using RegExp in PHP
"; // Replace only spaces echo str_replace(" ", "-", $text); ?>