- var_dump: documentation ( source)
- phpversion: documentation ( source)
- filter_var: documentation ( source)
<?php
$email = "bart.reymenants@gmail.c"; //Note the .com missing
echo "PHP Version: ".phpversion().'<br>';
if(filter_var($email, FILTER_VALIDATE_EMAIL)){
echo "no ";
echo $email.'<br>';
var_dump(filter_var($email, FILTER_VALIDATE_EMAIL));
}else{
echo "nok";
var_dump(filter_var($email, FILTER_VALIDATE_EMAIL));
}
?>