What is the purpose of the filter_input_array() function in PHP?
- To validate user inputs
- To sanitize user inputs
- To filter multiple inputs
- To get input from user
The filter_input_array() function is used to filter multiple inputs at once in PHP. It allows you to specify an input array and apply a set of filters to each element of the array. Read more at: http://php.net/manual/en/function.filter-input-array.php
Loading...
Related Quiz
- You need to close a file in your PHP script after you're done with it. How would you do this?
- What is the purpose of the array_push() function in PHP?
- You need to check if a function has been defined in your PHP script. How would you do this?
- In your PHP script, you have a loop inside another loop. You want to stop the execution of both loops once a certain condition is met. How would you do this using break?
- Which of the following statements about variable scope in PHP are correct?