参数 | 描述 |
---|---|
type |
必需。规定要检查的类型。可能的值:
|
variable | 必需。规定要检查的变量。 |
在本例中,输入变量 "name" 被发送到 PHP 页面:
<?php
if(!filter_has_var(INPUT_GET, "name")
)
{
echo("Input type does not exist");
}
else
{
echo("Input type exists");
}
?>
输出类似:
Input type exists
制作:
http://www.7di.net 生活网搜集整理 参考: http://www.w3school.com.cn/php/func_filter_has_var.asp |