Re: is_numeric for php3
| From: | daniel james | Date: | Tue, 28 Aug 2001 22:03:28 +0000 |
| Subject: | Re: is_numeric for php3 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64887@lists.php.net to get a copy of this message | ||
do you mean, as in,
if !is_integer($var) {
print("$var is not an integer");
}
--- Philip Olson <philip@cornado.com> wrote:
> hi friends,
>
> Can someone post here "the" most efficient method to
> validate a variable
> as numeric? I see a ton of hacks/ways in the manual
> user comments under
> is_int, is_integer and is_numeric and would like to
> see just one or two
> good solid ones. And please, no regular expressions
> :)
>
> Regards,
> Philip
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/