Possible Duplicate:
Function to return only alpha-numeric characters from string?
Starting from $string = "hey hello 9times-%&";
I would like to replace all the chars that are NOT numeric[0-9] or [a-z,A-Z] type.
Is there a good method to show this process control?
EDITED
i forgot that i need to leave blank space bar blank spaces, i mean:
"hey &/k" must return as "hey k" and NOT as "heyk"