parent root
PHP: is_integer - Manual
PHP 7.2.23 Release Announcement

is_integer

(PHP 4, PHP 5, PHP 7)

is_integerAlias of is_int()

Description

This function is an alias of: is_int().

add a noteadd a note

User Contributed Notes 4 notes

up
-8
ru dot mahmoud at mail dot ru
8 months ago
using function :

if(is_integer($_POST[mobile_number])){
return true; //// 0-9
}else{
echo "Wrong number";
return false;
}
up
-27
being dot juan at icloud dot com
2 years ago
There is no difference, per se. is_integer() is an alias of is_int().
up
-30
gldbrzent at gmail dot com
2 years ago
There are two different functions.  But, the reason why is beyond the scope of this article!
up
-38
topor-grabowski at anwalt dot de
2 years ago
Could someone explain me, why there are 2 different functions:
is_int and is_integer?
To Top
parent root