显示下拉菜单

is_numeric()

« is_null | is_real »
<?php
$bool 
is_numeric (
    
  // mixed $var
);
?>
结果
$bool = false
示例
#1 is_numeric  ("42")
#2 is_numeric  (1337)
#3 is_numeric  (0x539)
#4 is_numeric  (02471)
#5 is_numeric  (0b10100111001)
#6 is_numeric  (1337e0)
#7 is_numeric  ("not numeric")
#8 is_numeric  ([])
#9 is_numeric  (9.1)
另请参阅
ctype_digit, is_array, is_bool, is_float, is_int, is_null, is_string