|
PHP5中文手册
filter_input_array(PHP 5 >= 5.2.0, PECL filter:0.11.0) filter_input_array — Gets multiple variables from outside PHP and optionally filters them 说明
mixed filter_input_array
( int $type
[, mixed $definition
] )
This function is useful for retrieving many values without repetitively calling filter_input(). 参数
返回值An array containing the values of the requested variables on success, or FALSE on failure. An array value will be FALSE if the filter fails, or NULL if the variable is not set. Or if the flag FILTER_NULL_ON_FAILURE is used, it returns FALSE if the variable is not set and NULL if the filter fails. 范例
Example#1 A filter_input_array() example
<?php 上例将输出:
|