হ্যাঁ, পিএইচপি-তে AND/OR এর সাথে filter_input() একত্রিত করা সম্ভব। এটি POST ক্ষেত্রের উপর লুপ করার মাধ্যমে করা যেতে পারে−
$value = filter_input(INPUT_POST, 'field', FILTER_DEFAULT, is_array($_POST['field']) ? FILTER_REQUIRE_ARRAY : NULL);
প্রতিটি লুপের জন্য একই ব্যবহারকারীর জন্য একটি সমতুল্য নীচে দেখানো হয়েছে−
$memory = array();
//looping through all posted values
foreach($_POST as $key => $value) {
//applying a filter for the array
if(is_array($value)) {
$ memory [$key] = filter_input(INPUT_POST, $key, {filters for array});
}
else {
$ memory [$key] = filter_input(INPUT_POST, $key, {filters for scalar});
}
}