php - filter_var_array() order of execution and rules -
the following simple bit of code shows working of filter_var_array(), <?php $data = array('age' => 21, 'rating' => 4, 'price' => 9.95, 'thousands' => '100,000.95', 'european' => '100.000,95' ); $instructions = array('age' => filter_validate_int, 'rating' => array('filter' => filter_validate_int, 'options' => array('min_range' => 1, 'max_range' => 4)), 'price' => array('filter' => filter_sanitize_number_float, 'flags' => filter_flag_allow_fraction), 'thousands' => array('filter' => filter_sanitize_number_float, 'flags' => filter_flag_allow_fraction | filter_flag_allow_thousand), 'european' => array('filter' => filter_validate_float, 'options' => array(...