While using filter_input
, I'm not able to pull in a POST
array variable. The POST
input:
type => 'container',
action => 'edit',
data[display] => 1,
data[query_limit] => 100
I can access the data
variable from the $_POST
superglobal correctly as an array, but the filter_input
function returns nothing:
$data = $_POST['data']; // Working, woot
$data = filter_input(INPUT_POST, 'data'); // returns null, should return array
$action = filter_input(INPUT_POST, 'action'); // returns "edit" (correctly)
Is it not possible to use filter_input
for a POST
array variable?
filter_input_array()
the one you need?