Possible Duplicate:
How to get last key in an array?
I have an array
$arr=Array
(
[0] = Array
(
[groupid] = 1
[groupname] = Oxy
[members] = Array
(
[0] = Array
(
[id] = 9
[name] => Anith
)
[1] = Array
(
[id] = 12
[name] = sanjay
)
[3] =Array
(
[id] = 13
[name] = Sooraj K
)
)
) )
Here $arr[0]['members'][2]
is unsetted. I want to find the last index of $arr[0]['members']
here that is 3..how can i find this last index