I need to filter my indexed array of associative arrays using an associative that may have different combinations of elements and potentially a variable number of elements.
$users = [
    [
        "name" => "ali",
        "age" => 22,
        "score" => 12
    ],
    [
        "name" => "hasan",
        "age" => 32,
        "score" => 52
    ],
];
And
$filters = [
    "name" => "ali",
    "age" => 22
];
I need to filter the $users array dynamically depending on this $filters.
function filter($item)
{
    // i dont how what should write here
}
$filtered_users = array_filter($users, 'filter');


