Hey, it would be nice to have an array filtering in fetchglobal - currently i have some helper functions for specific/easy scenarios like
numeric array:
PHP Code:
public function getPostArray( $index, $filter )
{
return filter_input_array( INPUT_POST, [ $index => [ 'filter' => $filter, 'flags' => FILTER_REQUIRE_ARRAY ] ], false )[$index];
}
would be a great improvement for security. ( i would also force the user to use filters - i know you can still directly access but sometimes you forgott it and so on )