略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: is_integer

2024-04-27

is_integer

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

is_integeris_int() 的别名

描述

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

add a noteadd a note

User Contributed Notes 3 notes

up
-50
ru dot mahmoud at mail dot ru
3 years ago
using function :

if(is_integer($_POST[mobile_number])){
return true; //// 0-9
}else{
echo "Wrong number";
return false;
}
up
-54
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
-63
gldbrzent at gmail dot com
4 years ago
There are two different functions.  But, the reason why is beyond the scope of this article!

官方地址:https://www.php.net/manual/en/function.is-integer.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3