I m following some exercises about data validation and decided to mess around with the filter_input()
function. When I try to run this code:
$_POST[ var ] = 10;
$filtered = filter_input(INPUT_POST, var , FILTER_VALIDATE_FLOAT);
var_dump($filtered);
var_dump(过滤费用)
Return NUL. 我知道,如果通过提交表格来分配<代码>_$_POST[ var]的价值,那么I m只是想知道,为什么人工将价值分配到<代码>_POST[]上?