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