Php Replace Spaces With Dash Str Replace And Preg Replace

Php Replace Spaces With Dash Str Replace And Preg Replace