title: how to append element to array with specific index in php
body: <p>I am new to php. 
  I am trying to get key and value of each element in special array. I want to save/push them into another array start from zero index.
  Of course (foreach loop) is the best tool here. Please help me BY YOUR CODE.
  I know describing this problem is a bit hard, so I have some drawings for you.</p>
  
  <pre><code>$info = array(
      &lt;--key--&gt;     &lt;--value--&gt; 
      [10] =&gt; 'apple',
      [8] =&gt; 'orange',
      [2] =&gt; 'banana',
      [23] =&gt; 'peach',
  )
  
  now I want to have an array like this:
  
  $myGoal = array(
    &lt;-key-&gt;   &lt;--------value---------&gt; 
      [0] =&gt; array('10'=&gt;'apple'),
      [1] =&gt; array('8'=&gt;'orange'),
      [2] =&gt; array('2'=&gt;'banana'),
      [3] =&gt; array('23'=&gt;'peach')
  )
  </code></pre>
  
  <p>I guess the code I need should be something like below:</p>
  
  <pre><code>$info = array(
      [10] =&gt; 'apple',
      [8] =&gt; 'orange',
      [2] =&gt; 'banana',
      [23] =&gt; 'peach',
  )
  
  $index = 0;
  $myGoal = array();
  foreach($info as $amount =&gt; $friut){
       $myGoal[$index] = [$amount][$friut];
       $index++;
  }
  </code></pre>
  
  <p>I'll be thank of anybody can help me.</p>