The filter_var() function is used to filter and validate data in PHP.
- TRUE
- FALSE
- nan
- nan
The filter_var() function in PHP is used to both filter and validate data. It offers a range of predefined filters to sanitize and validate different types of data, such as URLs, email addresses, numbers, and more. By applying appropriate filters, the filter_var() function ensures the integrity and security of the data. Refer to: http://php.net/manual/en/function.filter-var.php
Loading...
Related Quiz
- In PHP, $_POST is a superglobal array that is used to collect form data after submitting an HTML form with ______ as the method.
- Which of the following are features of PHP?
- What PHP function can be used to write to a file?
- What are some commonly used network functions available in PHP?
- To check the data type of a variable in PHP, which function do you use?