title: How to add a new item inside an array
body: <p>This is a array that i printed out in PHP</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [friend_id] =&gt; 1 [name] =&gt; parker[email] =&gt; parker@gmail.com)[1] =&gt; Array ( [friend_id] =&gt; 2 [name] =&gt; peter [email] =&gt; peter@hotmail.com) )
  </code></pre>
  
  <p>Can i know how to use loop in php to add a new item/param inside the array like this</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [friend_id] =&gt; 1 [name] =&gt; parker[email] =&gt; parker@gmail.com [NEWOBJECT] =&gt; newvalue)[1] =&gt; Array ( [friend_id] =&gt; 2 [name] =&gt; peter [email] =&gt; peter@hotmail.com [NEWOBJECT] =&gt; newvalue) )
  </code></pre>