|
PHP5中文手册
filter_var_array(PHP 5 >= 5.2.0, PECL filter:0.11.0) filter_var_array — Gets multiple variables and optionally filters them 说明
mixed filter_var_array
( array $data
[, mixed $definition
] )
This function is useful for retrieving many values without repetitively calling filter_var(). 参数
返回值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. 范例
Example#1 A filter_var_array() example
<?php 上例将输出:
|