|
PHP5中文手册
filter_input(PHP 5 >= 5.2.0, PECL filter:0.11.0) filter_input — Gets variable from outside PHP and optionally filters it 说明
mixed filter_input
( int $type
, string $variable_name
[, int $filter
[, mixed $options
]] )
参数
返回值Value of the requested variable on success, FALSE if the filter fails, or NULL if the variable_name variable is not set. 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() example
<?php 上例的输出类似于:
|