is_integer

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

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().
PHP8中文手册 站长在线 整理 版权归PHP文档组所有