The filter_var() function in PHP is used to ______ and validate data.

  • filter
  • sanitize
  • validate
  • clean
The filter_var() function in PHP is used to filter and validate data. It provides a wide range of filters to sanitize and validate various types of data, such as URLs, email addresses, numbers, and more. By applying appropriate filters, the filter_var() function helps ensure data integrity and security. 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 *