PHP filter_id() 函数
PHP 教程
· 2019-01-25 17:57:45
定义和用法
filter_id() 函数返回指定过滤器的 ID 号。
如果成功则返回过滤器的 ID 号,如果过滤器不存在则返回 NULL。
语法
filter_id(filter_name)
| 参数 | 描述 |
|---|---|
| filter_name | 必需。规定被获取 ID 号的过滤器。 必须是过滤器名称(不是过滤器 ID 名)。请使用 filter_list() 函数来获取所有被支持的过滤器的名称。 |
实例
<?php
echo(filter_id("validate_email"));
?>
代码的输出如下所示:
274
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Beginning PHP and MySQL 5
W. Jason Gilmore / Apress / 2006-01-23 / USD 44.99
Beginning PHP and MySQL 5: From Novice to Professional, Second Edition offers comprehensive information about two of the most prominent open source technologies on the planet: the PHP scripting langua......一起来看看 《Beginning PHP and MySQL 5》 这本书的介绍吧!