Probably one of the most frequent form field validations is whether a field is of a proper email or URL value. PHP uses built-in function to validate the URL and Email

Example of a PHP URL and email validation functions

PHP based email and URL validation

 

›› go to examples ››