Add 2 static keys and valur to each inner array of 2 dimension array
<p>I have a 2 dimension array with the help of Baba and now I am in problem again as I need to add [exam] => testOne and [exam_id] => 1 to all inner arrays</p>

<pre><code>array
  0 =&gt; 
    array
      'id' =&gt; string '7' (length=1)
      'name' =&gt; string 'Name 1' (length=6)
      'marks' =&gt; string '8' (length=1)
      'grade' =&gt; string '4' (length=1)
  1 =&gt; 
    array
      'id' =&gt; string '8' (length=1)
      'name' =&gt; string 'Name 2' (length=6)
      'marks' =&gt; string '5' (length=1)
      'grade' =&gt; string '2.5' (length=3)
  2 =&gt; 
    array
      'id' =&gt; string '9' (length=1)
      'name' =&gt; string 'another name' (length=12)
      'marks' =&gt; string '8' (length=1)
      'grade' =&gt; string '4' (length=1)
</code></pre>

<p>I need to add 
[exam] => testOne and [exam_id] => 1 to all inner arrays want results as follwing</p>

<pre><code>array
  0 =&gt; 
    array
      'exam_id' =&gt;'1'
      'exam' =&gt; 'testOne'
      'id' =&gt; string '7' (length=1)
      'name' =&gt; string 'Name 1' (length=6)
      'marks' =&gt; string '8' (length=1)
      'grade' =&gt; string '4' (length=1)
  1 =&gt; 
    array
      'exam_id' =&gt;'1'
      'exam' =&gt; 'testOne'
      'id' =&gt; string '8' (length=1)
      'name' =&gt; string 'Name 2' (length=6)
      'marks' =&gt; string '5' (length=1)
      'grade' =&gt; string '2.5' (length=3)
  2 =&gt; 
    array
      'exam_id' =&gt;'1'
      'exam' =&gt; 'testOne'
      'id' =&gt; string '9' (length=1)
      'name' =&gt; string 'another name' (length=12)
      'marks' =&gt; string '8' (length=1)
      'grade' =&gt; string '4' (length=1)
</code></pre>

<p>This is such a great place for learners like me.</p>
