replace special characters in a string in PHP using regex except certain chars
I would like to replace all special characters in a string except space and -.

For example, 

Hello-my näme *is (Jämes93!

to

Hello-my name is James93 

or even

Hello-my nme is Jmes93 

I  have the following but it won't work. Pls can someone help?
Thanks

    preg_replace('#[^\w-]#',"",$string)
replace special characters in a string in PHP using regex except certain chars
===

I would like to replace all special characters in a string except space and -.

For example, 

Hello-my näme *is (Jämes93!

to

Hello-my name is James93 

or even

Hello-my nme is Jmes93 

I  have the following but it won't work. Pls can someone help?
Thanks

    preg_replace('#[^\w-]#',"",$string)