PHP is_long() Function Last Updated : 22 Jul, 2022 Summarize Comments Improve Suggest changes Share Like Article 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 Comment More infoAdvertise with us Next Article PHP log(), log10() Functions V vkash8574 Follow Improve Article Tags : Web Technologies PHP PHP-function Similar Reads PHP | ip2long() Function The ip2long() function is an inbuilt function in PHP that converts IPv4 address (dotted IP address) into a long integer. Syntax:Â int ip2long( string $ip_address ) Parameters: This function accepts single parameter as mentioned above and described below:Â Â $ip_address: It is required parameter which 2 min read PHP | long2ip() Function The long2ip() function is an inbuilt function in PHP which converts long integer into corresponding IPv4 address in string format. Syntax: string long2ip( int $ip_in_long ) Parameters: This function accepts single parameter as mentioned above and described below: $ip_in_long: It is required paramete 1 min read PHP log1p() Function The log1p() is an inbuilt PHP function that returns log(1+number), & when the value of the number is close to zero, then it will compute the way that will provide the accurate result. Syntax: log1p(float $num): floatParameter: This function accepts only a single parameter: num: This parameter sp 1 min read PHP list() Function The list() function is an inbuilt function in PHP which is used to assign array values to multiple variables at a time. This function will only work on numerical arrays. When the array is assigned to multiple values, then the first element in the array is assigned to the first variable, second to th 2 min read PHP log(), log10() Functions Logarithm is the counter operation to exponentiation. The logarithm of a number is in fact the exponent to which the other number i.e. the base must be raised to produce that number. If the Euler's Number 'e' is used as the base of any logarithmic operation it is then known as Natural Logarithmic Op 2 min read PHP ob_get_length() Function The ob_get_length() function is an inbuilt function in PHP that is used to get the length of the current output buffer. The output buffer length is the number of bytes in the buffer. Syntax: ob_get_length(): int|falseParameters: This function does not accept any parameter. Return Values: The ob_get_ 2 min read Like