PHP filter_list() 函数

PHP 教程 · 2019-01-25 18:43:09

定义和用法

filter_list() 函数返回包含所有得到支持的过滤器的一个数组。

语法


filter_list()


提示和注释

注释:该函数的结果不是过滤器 ID,而是过滤器名称。请使用 filter_id() 函数来获取过滤器 ID。

实例


<?php
print_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
  )


点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Twitter Power

Twitter Power

Joel Comm / Wiley / 2009-02-17 / USD 24.95

"Arguably, one of the best tomes...Twitter Power is jam-packed with clever ways to start and dominate a marketplace." (Brandopia.typepad.com, March 23rd 2009) &#8220;For months I......一起来看看 《Twitter Power》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具