You are here: Re: isNumber function? « PHP Programming Language « IT news, forums, messages
Re: isNumber function?

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]


Удаленная работа для программистов  •  Как заработать на 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

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