To ensure that an email field contains a valid email address, you can use the PHP ________ filter.
- sanitize_email()
- validate_email()
- filter_var()
- check_email()
You can use the PHP filter_var() function with the FILTER_VALIDATE_EMAIL filter to ensure that an email field contains a valid email address.
Loading...
Related Quiz
- A(n) ________ token can be used to protect against CSRF attacks by ensuring that requests are genuine.
- The path for which the cookie is valid can be set using the ________ parameter in the setcookie() function.
- You are writing a PHP script and you need to create a MySQL table. How would you do this?
- What are some common practices in PHP when using traits in OOP?
- What is a multidimensional array in PHP?