How come this doesn't work?
$var=ereg_replace("[-]","",$var);
or this?
$var=ereg_replace("-","",$var);
I want to edit out minus signs in a particular field in my form but niether of the above works. Any ideas?
Thanks.
Either should work (so the problem's not there, then), but $var = str_replace("-", "", $var); would be a lot more straightforward.
Yeah someone told me that str_replace was faster too so I switched to that. And the problem was in the way I was using my variables. Thanks for your reply.