title: How to update a multi-array value?
body: <p>I have this multidimension array in which I need to update a value.  What would be the best way to do so?  I tried it with 2 foreach loops but wasn't sure if that was the right approach.</p>
  
  <p>Here is the array in question.  I need to update the dollar amount on each sub array (i.e. add 3 to it).</p>
  
  <pre><code>array(6) { ["Ground"]=&gt; array(2) { [0]=&gt; string(3) "USD" [1]=&gt; string(5) "13.63" } 
             ["3 Day Select"]=&gt; array(2) { [0]=&gt; string(3) "USD" [1]=&gt; string(5) "25.26" } 
             ["2nd Day Air"]=&gt; array(2) { [0]=&gt; string(3) "USD" [1]=&gt; string(5) "32.43" } 
             ["Next Day Air Saver"]=&gt; array(2) { [0]=&gt; string(3) "USD" [1]=&gt; string(5) "63.00" } 
             ["Next Day Air"]=&gt; array(2) { [0]=&gt; string(3) "USD" [1]=&gt; string(5) "68.65" } 
             ["Next Day Air Early AM"]=&gt; array(2) { [0]=&gt; string(3) "USD" [1]=&gt; string(6) "103.68" } } 
  </code></pre>