★ wanayoo — archive 1999 http://www.php.net/manual/de/function.is-integer.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Variablen
Quick Reference
English version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Variablen
* call_user_func
* call_user_method
* doubleval
* empty
* gettype
* intval
* is_array
* is_bool
* is_double
* is_float
* is_int
* is_integer
* is_long
* is_object
* is_real
* is_resource
* is_string
* isset
* print_r
* settype
* strval
* unset
* var_dump
Manual: is_integer
View the source code for this pageSearch the site



Previous page
 is_int
 Updated
Sat, 12 Aug 2000
is_long 
Next page


is_integer

(PHP3 , PHP4 )

is_integer -- Prüft, ob eine Variable vom Typ integer ist

Beschreibung

int is_integer (mixed var)

Diese Funktion liefert true, wenn var vom Typ integer ist, sonst false.

Siehe auch is_double(), is_float(), is_int(), is_string(), is_real(), is_object(), is_array() und is_long().


User Contributed Notes: is_integer


martin@hkhotmail.com
28-Jul-2000 10:02
is_integer only check the datatype of the var, but not the actual value. Also, if the input value is not integer, the function will return empty (true in empty($rc) ) rather than 0.

E.g.

var1 = 1111; //is_integer(var1) -> 1

var2 = '1111'; //is_integer(var2) -> empty

var3 = 'abcde'; //is_integer(var3) -> empty


P.S. the version of above result is PHP 3.0.8
Thx attention.



 About Notes


Previous page
 is_int
 Updated
Sat, 12 Aug 2000
is_long 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.