WordPress array function discovery

I needed to get some specific key values from an array and array_intersect_key didn’t work as I would like. So I thought, this issue must be a prevalent one, maybe WordPress has a solution provided. And low and behold it did. I give you:


wp_array_slice_assoc( $array, $keys )