Posted by Arnold Shore on 02/23/06 10:57
Something like if (parsefloat(x) ==x) workds for me.
AS
<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.
>
> Thanks, - Dave
>
Navigation:
[Reply to this message]
|