is_integer

(PHP 4, PHP 5, PHP 7)

is_integeris_int() 的别名

描述

此函数是 is_int() 的别名函数。

User Contributed Notes

ru dot mahmoud at mail dot ru 17-Jan-2019 08:05
using function :

if(is_integer($_POST[mobile_number])){
 return true; //// 0-9
}else{
 echo "Wrong number";
return false;
}
gldbrzent at gmail dot com 24-Sep-2017 07:37
There are two different functions.  But, the reason why is beyond the scope of this article!
being dot juan at icloud dot com 26-Jul-2017 05:07
There is no difference, per se. is_integer() is an alias of is_int().
topor-grabowski at anwalt dot de 19-Jul-2017 09:47
Could someone explain me, why there are 2 different functions:
is_int and is_integer?