以前我们常用一招用正则判断是不是正确的email地址
其实php早就想到了.
用filter_var 这个函数就可以
var_dump(filter_var('bob.example.com', FILTER_VALIDATE_EMAIL));
显示 bool(false)
var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL));
显示bob@example.com
PHP代码
filter_var('bob@example.com', FILTER_VALIDATE_EMAIL)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download
The most popular open source editor

Zend Studio 13.0.1
Powerful PHP integrated development environment