Array_filter Use teclas

array_filter( $array,
    function ($key) { return someCondition( $key ) },
    ARRAY_FILTER_USE_KEY
)
Yoshkinawa