What types of data can be validated using the filter_var() function in PHP?

  • Email addresses
  • URLs
  • IP addresses
  • All of the above
The filter_var() function in PHP can be used to validate various types of data, including email addresses, URLs, and IP addresses. It provides specific filters for each of these data types, allowing you to perform validation based on their respective formats and rules. The filter_var() function offers flexibility in data validation for multiple data types. For further information, 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 *