PHP FILTER_SANITIZE_EMAIL 过滤器
PHP 教程
· 2019-01-25 20:41:55
定义和用法
FILTER_SANITIZE_EMAIL 过滤器删除字符串中所有非法的 e-mail 字符。
该过滤器允许所有的字母、数字以及 $-_.+!*'{}|^~[]`#%/?@&=
- Name: "email"
- ID-number: 517
实例
<?php $var="some(one)@exa\mple.com"; var_dump(filter_var($var, FILTER_SANITIZE_EMAIL)); ?>
代码的输出如下所示:
string(19) "someone@example.com"
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
The Joy of X
Niall Mansfield / UIT Cambridge Ltd. / 2010-7-1 / USD 14.95
Aimed at those new to the system seeking an overall understanding first, and written in a clear, uncomplicated style, this reprint of the much-cited 1993 classic describes the standard windowing syste......一起来看看 《The Joy of X》 这本书的介绍吧!