Home >php教程 >php手册 >PHP filter_list 实例教程

PHP filter_list 实例教程

WBOY
WBOYOriginal
2016-06-13 11:16:411238browse

 

定义和用法
该filter_list ( )函数返回一个数组的所有受支持的过滤器。

语法

filter_list()


提示和说明 注:此结果并不功能的过滤器编号,但过滤器的名称。使用filter_id ( )函数来得到过滤器编号

 

 

 

例如

 

<!--?phpprint_r(filter_list());?-->
 
输出结果.
 

Array ( [0] => int [1] => boolean [2] => float [3] => validate_regexp [4] => validate_url [5] => validate_email [6] => validate_ip [7] => string [8] => stripped [9] => encoded [10] => special_chars [11] => unsafe_raw [12] => email [13] => url [14] => number_int [15] => number_float [16] => magic_quotes [17] => callback )

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn