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