Hướng dẫn check int in php
(PHP 4, PHP 5, PHP 7, PHP 8) is_int — Find whether the type of a variable is integer Descriptionis_int(mixed
Parametersvalue The variable being evaluated. Return Values Returns
ExamplesExample #1 is_int() example
The above example will output: is_int(23) = bool(true) is_int('23') = bool(false) is_int(23.5) = bool(false) is_int('23.5') = bool(false) is_int(NULL) = bool(false) is_int(true) = bool(false) is_int(false) = bool(false) See Also
Simon Neaves ¶ 14 years ago
Robin ¶ 12 years ago
e dot sand at elisand dot com ¶ 13 years ago
andre dot roesti at 7flex dot net ¶ 12 years ago
davide dot renzi at gmail dot com ¶ 6 years ago
petepostma at gmail dot spam dot com ¶ 10 years ago
nicolas dot giraud at actiane dot com ¶ 10 years ago
Vasiliy Makogon ¶ 6 years ago
isFloat($val) me at rexxars dot com ¶ 12 years ago
Julien Picalausa ¶ 14 years ago
gabe at websaviour dot com ¶ 19 years ago
qlimmax at gmail dot com ¶ 14 years ago
Ender at soldat dot nl ¶ 16 years ago
tudor at tudorholton dot com ¶ 15 years ago
ludvig dot ericson at gmail dot com ¶ 16 years ago
lksunny at live dot hk ¶ 5 years ago
lclkk at urbanvagabond dot net ¶ 18 years ago
PHPDev esurf er s >dot ¶ 7 years ago
Wryel Covo - ryryel[at]gmail[dot]com ¶ 13 years ago
$test = onlyNumbers("as87d68a6db8a7d686dx8a6dx"); //2147483647
mark at codedesigner dot nl ¶ 14 years ago
ing dot alpi at gmail dot com ¶ 8 years ago
Roberto Rama ¶ 13 years ago
leonix at motd dot ru ¶ 13 years ago
arturs at indigo dot lv ¶ 10 years ago
some at somewhere dot com ¶ 9 years ago
thierryreeuwijk at hotmail dot com ¶ 12 years ago
TRUE;// It's a number, but not an integer, so we fail Anonymous ¶ 7 years ago
felix dot b at outlook dot com ¶ 7 years ago
|