Answers for "IF VALID EMAIL PHP"

PHP
1

valide email php

$email = "[email protected]";

if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
  $emailErr = "Email invalide";
}
Posted by: Guest on May-11-2020
0

php validate email

//BE CAREFUL!!!
//NEVER VALIDATE A EMAIL WITH A NORMAL PREG MATCH
//I SAW THIS A LOT VALIDATING A EMAIL IS THE BEST TO SEND A EMAIL 
//AND VERIFY
//BECAUSE SOMEONE MIGHT HAVE A RIGHT EMAIL THAT DOESNT WORK BECAUSE OF 
//PREG MATCH
Posted by: Guest on September-30-2020

Browse Popular Code Answers by Language