Validation

  

Validation

by Craig Mayhew



PHP email validation using regex


I keep seeing PHP where the programmer has written a regular expression to validate an email address.

Don't do that! Use the filter_var() function that php comes with out of the box.



<?php
$emailAddress =…



page_titlePHP   page_titleValidation  


© 2018 Craig Mayhew