PHP allow only numbers in string
Hello,
I am looking for a way to only allow the numbers 0-9 in a string. I would like to remove any other characters.
Example: $string="$1,234 Tom";
would like to script to make $string="1234";
I once saw someone do this as a sucurity measure, but can't find it.
__________________
Best Regards,
Randy
|