Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<body>
<?php
// Variable to check
$email = "john.doe@example.com";
// 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");
}
?>
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_filter_var by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:51:02 GMT -->
</html>
×

Report a Problem: