PHP 8.1.0 RC 2 available for testing

is_integer

(PHP 4, PHP 5, PHP 7, PHP 8)

is_integerAlias de is_int()

DescripciĆ³n

Esta funciĆ³n es un alias de: is_int().

add a note add a note

User Contributed Notes 3 notes

up
-41
being dot juan at icloud dot com
4 years ago
There is no difference, per se. is_integer() is an alias of is_int().
up
-40
ru dot mahmoud at mail dot ru
2 years ago
using function :

if(is_integer($_POST[mobile_number])){
return true; //// 0-9
}else{
echo "Wrong number";
return false;
}
up
-52
gldbrzent at gmail dot com
3 years ago
There are two different functions.  But, the reason why is beyond the scope of this article!
To Top