Answers for "php check if string is email format"

PHP
0

validate correct format email php

$email = $_POST["email"];
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
  $emailErr = "Invalid email format";
}
Posted by: Guest on February-22-2021
0

php check if string email

<?php
    if(filter_var("[email protected]", FILTER_VALIDATE_EMAIL)) {
        // valid address
    }
    else {
        // invalid address
    }
?>
Posted by: Guest on July-28-2021

Code answers related to "php check if string is email format"

Browse Popular Code Answers by Language