How do I get just the array with value 7? This is just sample data and there may be hundreds of arrays.
This is what I get from print_r. I do not want to loop through the data if possible.
Array
(
[1] => Array
(
[0] => 1
)
[2] => Array
(
[0] => 1
)
[3] => Array
(
[0] => 2
[1] => 1
)
[4] => Array
(
[0] => 3
[1] => 2
[2] => 1
)
[7] => Array
(
[0] => 4
[1] => 3
[2] => 2
[3] => 1
)
[5] => Array
(
[0] => 2
[1] => 1
)
[6] => Array
(
[0] => 5
[1] => 2
[2] => 1
)
)
Not sure if I understand the question correctly, but perhaps: