You are here: Re: is it a valid floating number « PHP Programming Language « IT news, forums, messages
Re: is it a valid floating number

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация