Answers for "php validating an email"

PHP
4

how to validate an email field using php

<?php
   $email = "[email protected]";
   // Validate email
   if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
      echo("$email is a valid email address");
   }
   else{
      echo("$email is not a valid email address");
   }
?>
Posted by: Guest on July-28-2020

Code answers related to "php validating an email"

Browse Popular Code Answers by Language