php filter var mail code example Example: php filter var mail <?php var_dump(filter_var('[email protected]', FILTER_VALIDATE_EMAIL));