Php Is_Numeric Function
# PHP is_numeric() Function
[PHP Available Functions](#)
The **is_numeric()** function is used to check whether a variable is a number or a numeric string.
PHP Version: PHP 4, PHP 5, PHP 7
### Syntax
bool is_numeric ( mixed $var )
Parameter Description:
* $var: The variable to check.
### Return Value
Returns TRUE if the specified variable is a number or a numeric string, otherwise returns FALSE. Note that a float returns 1, which is TRUE.
### Example
## Example
The output will be:
678 is a number a678 is not a number---------------------bool(true)[ Is 678 a number? ]---------------------bool(false)[ Is a number? ]---------------------bool(true)[ Is 698.99 a number? ]---------------------bool(false)[ Is Array a number? ]---------------------bool(true)[ Is 125689.66 a number? ]
[PHP Available Functions](#)
YouTip