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'.
In reply to Re: Re: Checking whether a $var is a number
by wog
in thread Checking whether a $var is a number
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |