
User Contributed Notes 3 notes
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;
}
being dot juan at icloud dot com ¶
4 years ago
There is no difference, per se. is_integer() is an alias of is_int().
gldbrzent at gmail dot com ¶
4 years ago
There are two different functions. But, the reason why is beyond the scope of this article!