$user1 = ereg_replace([a-z 0-9], '', $user);
$user is defined from a form that sends data to this script. Every time the script is called, I get the error:
Parse error: parse error, expecting `')''
What I'm actually trying to do is have the script remove all characters except the ones specified in the ereg expression. I was following another post I found in the forums here, so this might be entirely wrong.
Thanks in advance