Array push with multidimensional array : <p>I have this multidimentional array:</p>

<pre><code>array(1) {
  [0]=&gt;
  array(1) {
    ["service"]=&gt;
    string(3) "top"
  }
}
</code></pre>

<p>and I want to push to the inner array the string below</p>

<pre><code>string(3) "443"
</code></pre>

<p>the string above I got it from an array using array_shift</p>

<pre><code>$id = array_shift($_POST['updateIDs']);
</code></pre>

<p>so it can become like this:</p>

<pre><code>array(1) {
  [0]=&gt;
  array(1) {
    ["service"]=&gt;
    string(3) "top"
    ['id']=&gt;'443'
  }
}
</code></pre>

<p>I think it must be done with array_push and foreach...i tried but I could not.</p>
