I have this ereg function
#-------------------
ereg("\D",$number)
#-------------------
$number being the value that I get from the form. I want to check that the value that was inserted is nothing but a number. That is not relevant in this case, because it returns true only when the input is the letter "D", according to metacharacters this means anything but a decimal digit. So assuming that, the function should return true for "S" or "s" or "d" but it doesn't.
Any help will be much apreciated.