Which function can be used in PHP to filter and sanitize user input?
- filter_input()
- sanitize_input()
- validate_input()
- clean_user_input()
The filter_input() function in PHP is used to filter and sanitize user input, ensuring it meets specific criteria or requirements. It's crucial for data security.
Loading...
Related Quiz
- You should always close a file in PHP using the fclose() function after you're done writing to it.
- Can a PHP class have more than one constructor?
- You have a string "OpenAI" and you want to replace "Open" with "Close". Which PHP function will you use?
- Why is it recommended to avoid using the @ error suppression operator in PHP?
- What are the libxml functions in PHP used for?