Php Is_Int Function
# PHP is_int(), is_integer(), is_long() Functions
[PHP Available Functions](#)
The **is_int()** function is used to check whether a variable is an integer.
**Note:** If you want to test whether a variable is a number or a numeric string (such as form input, which is usually a string), you must use **[is_numeric()](#)**.
**Alias Functions:** is_integer(), is_long().
PHP Version Requirement: PHP 4, PHP 5, PHP 7
### Syntax
bool is_int ( mixed $var )
Parameter Description:
* $var: The variable to check.
### Return Value
Returns TRUE if the specified variable is an integer, otherwise returns FALSE.
### Example
## Example
Output:
678 is an integer a678 is not an integerbool(false)[ Is 678 an integer? ]bool(true)[ Is 999 an integer? ]bool(false)[ Is 698.99 an integer? ]bool(false)[ Is Array an integer? ]bool(false)[ Is 125689.66 an integer? ]
[PHP Available Functions](#)
YouTip