I've tried various combinations and permutations of filter_var_array() and have yet to find the answer to this:
Given a rather large associative array, I need to apply FILTER_SANITIZE_STRING with the FILTER_FLAG_STRIP_LOW flag to ALL of the elements in the array.
So:
filter_var_array($my_big_array,FILTER_SANITIZE_STRING);
applies the FILTER_SANITIZE_STRING filter but without the FILTER_FLAG_STRIP_LOW flag.
And...
filter_var_array($my_big_array,FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
Brings up an error.
Is it possible to easily apply a common filter using filter_var_array()?