What is PHP form validation?
It is the process of checking user input for correctness and safety.
Why is PHP validation necessary?
Because client-side validation alone is not secure.
What function is used for email validation?
filter_var() with FILTER_VALIDATE_EMAIL.
What is sanitization?
Cleaning input to make it safe for use.
Can PHP prevent XSS attacks?
Yes, using functions like htmlspecialchars().