Hello, I'm using PHP 4 and I was wondering if there was a function, or
an easy way to check if a variable is a number. THe "intval" function
doesn't work very well for me because if the variable is "abc" or "0",
the same value is returned. I would prefer a function that tells me
"abc" is not a number and "0" is a number.
Thanks, - Dave
an easy way to check if a variable is a number. THe "intval" function
doesn't work very well for me because if the variable is "abc" or "0",
the same value is returned. I would prefer a function that tells me
"abc" is not a number and "0" is a number.
Thanks, - Dave
Comment