Php two-dimensional array gets the same key value and outputs

now I have a two-dimensional array
array (

)
[aaa_0] => Array
    (
        [2] => 2
        [4] => 4
        [5] => 5
    )
[aaa_1] => Array
    (
        [1] => 1
        [2] => 2
        [5] => 5
    )

[aaa_2] => Array
    (
        [5] => 5
    )

)
how can I retrieve the same key values in aaa_0 and aaa_1 and aaa_2? That is, 5

Php
Mar.05,2021

array_keys gets all the key values of the array
array_intersect gets the same element of both arrays
.

Menu