title: remove element from array and reindex from 0
body: <pre><code>Array (
      [REF_DETAILS] = Array
          (
              [0] = Array
                  (
                      [ID] =&amp;gt; 1231312
                      [USER] =&amp;gt; USER
                  )
  
              [1] = Array
                  (
                      [TID] =&amp;gt; 2754042         
                      [USER] = USER
                  )
              [1] = Array
                  (
                      [TID] =&amp;gt; 534535         
                      [USER] = USER
                  )
  
          )
  
      [TOTAL_COUNT] = 31
  )
  </code></pre>
  
  <p>I have a array output like this above and I want to remove one element from the array then again i want to reindex it from 0. I tried with array_value in php but after doing this it is removing [REF_DETAIL] with 0 and TOTAL_COUNT as 1 , please provide the solution in php</p>