Description
This conditional function checks if the given variable is an integer type. This is a boolean function, meaning it returns either TRUE or FALSE.How to Use
<?php is_int( $integer ); ?>
Return Values
(boolean) True on success, false on failure.Examples
if(is_int(12)){ echo "this is an integer value";
}else{ echo "this is not an integer"; }
// Outputs: this is an integer value
No comments:
Post a Comment