title: How to change separate associative arrays to something usable such as one indexed array?
body: <p><code>print_r($element_attrs);</code> returns the following arrays which are gathered from an xml file.</p>
  
  <pre><code>Array ( [WEATHER-SUMMARY] =&gt; Increasing Clouds ) 
  Array ( [WEATHER-SUMMARY] =&gt; Thunderstorms ) 
  Array ( [WEATHER-SUMMARY] =&gt; Thunderstorms Likely ) 
  Array ( [WEATHER-SUMMARY] =&gt; Cloudy ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Cloudy ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Sunny ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Clear ) 
  Array ( [WEATHER-SUMMARY] =&gt; Sunny ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Clear ) 
  Array ( [WEATHER-SUMMARY] =&gt; Sunny ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Clear ) 
  Array ( [WEATHER-SUMMARY] =&gt; Sunny ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Clear ) 
  Array ( [WEATHER-SUMMARY] =&gt; Mostly Sunny ) 
  Array ( [WEATHER-SUMMARY] =&gt; Fair ) 
  Array ( )
  </code></pre>
  
  <p>Right now they are 16 separate associative arrays in which all the keys are the same except for the last one that's blank for some reason.  What I'd like to do is return the value for the second to last array <code>Array ( [WEATHER-SUMMARY] =&gt; Fair )</code>.  I've been experimenting with <code>foreach()</code> and <code>for()</code> loops to try to create either an index where I can retrieve the array I want or make a multidimensional array that contains all the info for each array.  Everything I try treats each array as separate and doesn't allow me to access the data as a group.</p>
  
  <p>Any help would be fabulous.  Thanks!</p>