Hey,
I need to run some cleaning code on my input from a form.. users are entering data such as "10.4%" and letters sometimes (!)
I need to strip anything in the string that is not a decimal point (full stop) and numbers 0-9.
I was considering using the str_replace - but I would need to do one for every char on the keyboard...
anyone know how I can do it?
thanks....