|
Posted by Nicholas Sherlock on 05/29/05 05:13
laredotornado@zipmail.com wrote:
> 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.
Would IsNumeric() fit the bill?
Cheers,
Nicholas Sherlock
Navigation:
[Reply to this message]
|