php replace spaces with dash
snippet in php

php replace spaces with dash

user3035

str_replace(' ', '-', $string);