On Wed, 30 Jul 2003 21:03:20 +0200
"Benny Nissen" <news@bennynissen.dk> wrote:
[snip]
> > My point?
> > Brug is_int() med mindre du vil have 'e' med i dine talværdier.
> > is_numeric() skulle rigtig nok helst tage 12e3 med som talværdi, da det jo
> > er
> > lig med (12 * 10^3). Men det er sjældent det man ønsker.
> > 
>
> Hvad så, hvis det ikke er et hel-tal han ønsker at teste for ?
> 
> is_int er vel kun sand, hvis det er et hel-tal ?
>
Hvis man ikke vil have heltal, så bruger man is_float()...
 
> På: 
http://dk.php.net/manual/en/function.is-int.php
> Står:
> Note: To test if a variable is a number or a numeric string (such as form
> input, which is always a string), you must use is_numeric().
Well, hvem sagde noget om form-input?
Mvh.
   Madsen
-- 
   - - - - - - - - - - - - - - + - - - - - - - - - - - - - - + 
  |                    Anders K. Madsen 
                   
http://lillesvin.linux.dk                 |
  + - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  |   There are 10 types of people in the world...           |
      Those who understand binary -  and those who don't. 
  |        - 
http://bash.org                                 |
   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +