The filter_var() function in PHP with the FILTER_VALIDATE_INT filter is used to check if a variable is an ______.

  • integer
  • array
  • object
  • string
The filter_var() function in PHP with the FILTER_VALIDATE_INT filter is used to check if a variable is an integer. It validates whether the provided value is a valid integer or not. It returns false if the value is not an integer and the validated integer if it is valid. The FILTER_VALIDATE_INT filter is a useful tool to validate integer values in PHP. Refer to: http://php.net/manual/en/function.filter-var.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *