in reply to Re: Checking whether a $var is a number
in thread Checking whether a $var is a number
Checking just for non-digits won't work on those. And you cannot just check for digits, E, e, and ., since these are all not numbers
The only thing that your technique will work for is integers -- certainly not the only thing meant by 'number'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Checking whether a $var is a number
by Ted Nitz (Chaplain) on Sep 05, 2001 at 01:01 UTC |