PHP is_long() Function Last Updated : 22 Jul, 2022 Comments Improve Suggest changes 2 Likes Like Report The is_long() function is an inbuilt function in PHP that is used to check whether the given value is a long integer or not. Syntax: bool is_long(mixed $value) Parameters: This function accepts a single parameter $value that holds the value which needs to check for a long integer. Return Value: This function returns true if the given value is a long integer, and false otherwise. Example 1: PHP <?php $arr = array(5215523545645, 10.5, null, true, "30", "GFG"); foreach ($arr as $val) { var_dump(is_long($val)); } ?> Output: bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) Example 2: PHP <?php $arr = array( 25, "Geeks" => 50, 130.25, "GeeksforGeeks", true, 214748364734 ); foreach ($arr as $val) { var_dump(is_long($val)); } ?> Output: bool(true) bool(true) bool(false) bool(false) bool(false) bool(true) Reference: https://www.php.net/manual/en/function.is-long.php Create Quiz Comment V vkash8574 Follow 2 Improve V vkash8574 Follow 2 Improve Article Tags : Web Technologies PHP PHP-function Explore BasicsPHP Syntax4 min readPHP Variables5 min readPHP | Functions6 min readPHP Loops4 min readArrayPHP Arrays5 min readPHP Associative Arrays4 min readMultidimensional arrays in PHP5 min readSorting Arrays in PHP4 min readOOPs & InterfacesPHP Classes2 min readPHP | Constructors and Destructors5 min readPHP Access Modifiers4 min readMultiple Inheritance in PHP4 min readMySQL DatabasePHP | MySQL Database Introduction4 min readPHP Database connection2 min readPHP | MySQL ( Creating Database )3 min readPHP | MySQL ( Creating Table )3 min readPHP AdvancePHP Superglobals6 min readPHP | Regular Expressions12 min readPHP Form Handling4 min readPHP File Handling4 min readPHP | Uploading File3 min readPHP Cookies9 min readPHP | Sessions7 min read Like