filter_var函数,PHP内置的过滤验证函数

in PHP with 0 comment
filter_var("someone@example....com", FILTER_VALIDATE_EMAIL);

具体支持的验证类型见http://php.net/manual/zh/filter.filters.validate.php

Comments are closed.