title: PHP: Get text separated by commas
body: <p>I have a multidimensinal array.. Something like this for example:</p>
  
  <pre><code>Array (
      [0] =&gt; Array
          (
              [title] =&gt; Star Trek - Viaje a las estrellas
              [country] =&gt; Venezuela, Spain, long title, poster title
          )
  
      [1] =&gt; Array
          (
              [title] =&gt; Viaje a Las Estrellas
              [country] =&gt; Venezuela
          )
  )
  </code></pre>
  
  <p>I want to get te text between commas from [country] and insert each element into separate indexes, for example:</p>
  
  <pre><code>Array (
      [0] =&gt; Array
          (
              [title] =&gt; Star Trek - Viaje a las estrellas
              [country] =&gt; [0] =&gt; Venezuela
                           [1] =&gt; Spain
                           [2] =&gt; long title
                           [3] =&gt; poster title
          )
  
      [1] =&gt; Array
          (
              [title] =&gt; Viaje a Las Estrellas
              [country] =&gt; Venezuela
          )
  )
  </code></pre>
  
  <p>Probably the array layout is incorrect but I just want to explain to you what I need to do. 
  Note that not always [country] contains elements separated by commas, sometimes is just one single element.</p>
  
  <p>How can I do it??</p>
  
  <p>Thanks!</p>