array_filter menggunakan kunci

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