Posted by Jim Michaels on 02/16/06 08:09
<laredotornado@zipmail.com> wrote in message
news:1140043822.595465.97670@g47g2000cwa.googlegroups.com...
> Hello, Using PHP 4, how do I check if a scalar variable is a valid
> floating point number? I assume that the mpety string ("") would not
> be considered a valid floating point number.
is_float($number)
an empty string will return false.
there is a whole series of is_ functions
try downloading the extended CHM manual (PHP documentation from php.net).
it's large (12MB) but it's nice.
>
> Thanks, - Dave
>
Navigation:
[Reply to this message]
|