switch the first element of an arrays sub array
<p>I have two arrays</p>

<p>ARRAY 1:    </p>

<pre><code>Array (
  [0] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-13
    [fMaxTemp] =&gt; 7
    [fMinTemp] =&gt; 2
  )
  [1] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-14
    [fMaxTemp] =&gt; 7
    [fMinTemp] =&gt; 5
  )
  [2] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-15
    [fMaxTemp] =&gt; 10
    [fMinTemp] =&gt; 5
  )
  [3] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-16
    [fMaxTemp] =&gt; 10
    [fMinTemp] =&gt; 1
  )
  [4] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-17
    [fMaxTemp] =&gt; 7
    [fMinTemp] =&gt; 3
  )
  [5] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-18
    [fMaxTemp] =&gt; 7
    [fMinTemp] =&gt; 3
  )
  [6] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-19
    [fMaxTemp] =&gt; 7
    [fMinTemp] =&gt; 1
  )
)
</code></pre>

<p>ARRAY 2:</p>

<pre><code>Array (
  [2] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-13T16:00:00-7:00
    [fMaxTemp] =&gt; 6
    [fMinTemp] =&gt; 6
    [fWeatherType] =&gt; chancerain
    [fProbability] =&gt; likely
    [fCloudCoverPercent] =&gt; 20
  )
  [5] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-13T19:00:00-7:00
    [fMaxTemp] =&gt; 6
    [fMinTemp] =&gt; 6
    [fWeatherType] =&gt; chancerain
    [fProbability] =&gt; likely
    [fCloudCoverPercent] =&gt; 20
  )
  [8] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-13T22:00:00-7:00
    [fMaxTemp] =&gt; 5
    [fMinTemp] =&gt; 5
    [fWeatherType] =&gt; chancerain
    [fProbability] =&gt; likely
    [fCloudCoverPercent] =&gt; 20
  )
)
</code></pre>

<p>I want to switch the <code>fMaxtTemp</code> amd <code>fMinTemp</code> of <code>Array2</code> to that of <code>Array1</code> for just the first element of Array2. So </p>

<pre><code>  [2] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-13T16:00:00-7:00
    [fMaxTemp] =&gt; 6
    [fMinTemp] =&gt; 6
    [fWeatherType] =&gt; chancerain
    [fProbability] =&gt; likely
    [fCloudCoverPercent] =&gt; 20
  )
</code></pre>

<p>will become</p>

<pre><code>  [2] =&gt; Array (
    [fStartValidTime] =&gt; 2012-03-13T16:00:00-7:00
    [fMaxTemp] =&gt; 7
    [fMinTemp] =&gt; 2
    [fWeatherType] =&gt; chancerain
    [fProbability] =&gt; likely
    [fCloudCoverPercent] =&gt; 20
  )
</code></pre>
