PHP » GoLang |
login |
register |
about
|
is_numeric(PHP 4, PHP 5, PHP 7) is_numeric — Finds whether a variable is a number or a numeric string DescriptionFinds whether the given variable is numeric. Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part. Thus +0123.45e6 is a valid numeric value. Hexadecimal (e.g. 0xf4c3b00c) and binary (e.g. 0b10100111001) notation is not allowed. Parameters
Return Values
Returns Examples
Example #1 is_numeric() examples
<?php The above example will output: '42' is numeric 1337 is numeric 1337 is numeric 1337 is numeric 1337 is numeric 1337 is numeric 'not numeric' is NOT numeric array () is NOT numeric 9.0999999999999996447286321199499070644378662109375 is numeric NULL is NOT numeric Changelog
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|