php array last index
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2348205/how-to-get-last-key-in-an-array">How to get last key in an array?</a>  </p>
</blockquote>



<p>I have an array</p>

<pre><code>$arr=Array
  (
   [0] = Array
       (
           [groupid] = 1
           [groupname] = Oxy
           [members] = Array
               (
                   [0] = Array
                       (
                           [id] = 9
                           [name] =&amp;gt; Anith
                       )

                   [1] = Array
                       (
                           [id] = 12
                           [name] = sanjay
                       )

                   [3] =Array
                       (
                           [id] = 13
                           [name] = Sooraj K
                       )

               )

       ) )
</code></pre>

<p>Here <code>$arr[0]['members'][2]</code> is unsetted. I want to find the last index of <code>$arr[0]['members']</code> here that is 3..how can i find this last index</p>
