title: Update an array
body: <p><code>$var</code> is an array:</p>
  
  <pre><code>Array (
   [0] =&gt; stdClass Object ( [ID] =&gt; 113 [title] =&gt; text )
   [1] =&gt; stdClass Object ( [ID] =&gt; 114 [title] =&gt; text text text )
   [2] =&gt; stdClass Object ( [ID] =&gt; 115 [title] =&gt; text text )
   [3] =&gt; stdClass Object ( [ID] =&gt; 116 [title] =&gt; text )
  )
  </code></pre>
  
  <p>Want to update it in two steps:</p>
  
  <ul>
  <li>Get <code>[ID]</code> of each object and throw its value to position counter (I mean <code>[0], [1], [2], [3]</code>)</li>
  <li>Remove <code>[ID]</code> after throwing</li>
  </ul>
  
  <p>Finally, updated array (<code>$new_var</code>) should look like:</p>
  
  <pre><code>Array (
   [113] =&gt; stdClass Object ( [title] =&gt; text )
   [114] =&gt; stdClass Object ( [title] =&gt; text text text )
   [115] =&gt; stdClass Object ( [title] =&gt; text text )
   [116] =&gt; stdClass Object ( [title] =&gt; text )
  )
  </code></pre>
  
  <p>How to do this?</p>
  
  <p>Thanks.</p>