Filtering and Validating Email and URL is very Important as we don't want to enter any false email in our database as we have to send sometime any private information related to the user.
A PHP filter is used to validate and filter data coming from insecure sources.
To test, validate and filter user input or custom data is an important part of any web application.
The PHP filter