title: PHP Exploding string into array
body: <p>I have a loop that contains a string of comma seperated values.</p>
  
  <pre><code>foreach ($profiles as $profile) {
    $user_states[] = exlpode(', ', '[string of comma seperated states]');
  }
  </code></pre>
  
  <p>The problem I'm experiencing is the <code>$user_states</code> array ends up being two levels, with each itteration of the loop creating a nested array. </p>
  
  <pre><code>array (size=2)
    0 =&gt; 
      array (size=3)
        0 =&gt; string 'DC' (length=2)
        1 =&gt; string 'Maryland' (length=8)
        2 =&gt; string 'Northern-Virginia' (length=17)
    1 =&gt; 
      array (size=1)
        0 =&gt; string 'North-Carolina,Virginia' (length=23)
  </code></pre>
  
  <p>How can I take exploded values and place them all into a single array? Thanks!</p>