I have an associative array like below
[
[
'k1' => 'v1',
'k2' => 'v2'
],
[
'k1' => 'v1',
'k2' => 'v2',
'k3' => 'v3'
],
[
'k1' => 'v1',
'k2' => 'v2',
'k3' => 'v3',
'k4' => 'v4'
]
]
Is it possible to get 3rd array which has maximum key/value pair.
EDIT
Let me clear a bit.
- array[0] contains 2 key/value pair.
- array[1] contains 3 key/value pair.
- array[2] contains 4 key/value pair.
So I need to get array which contains maximum key/value pair.
Thanks in advance