VOOZH about

URL: https://www.geeksforgeeks.org/php/php-is_int/

⇱ PHP | is_int() - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PHP | is_int()

Last Updated : 11 Jul, 2025

is_int() is an inbuilt function in PHP. The is_int() function is used to test whether the type of the specified variable is an integer or not.

Syntax

:

boolean is_int($variable_name)
Parameter: this function contains a single parameter
$variable_name: the variable we want to check.
Return value : it is a boolean function so returns T
RUE when $variable_name is an integer, otherwise FALSE.

Output

:

56 is Integer 
xyz is not Integer

Reference

:

https://www.php.net/manual/en/function.is-int.php
Comment
Article Tags:
Article Tags: