title: Print the elements of a txt column
body: <p>Got this code php</p>
  
  <pre><code>$data ='
  one;uno
  two;dos
  three;tres
  four;cuatro
  '
  </code></pre>
  
  <p>I want to <strong>print</strong> the first column in a row, separating elements with comma and aspace, to obtain this result:</p>
  
  <pre><code>one, two, three, four
  </code></pre>
  
  <p>Any help please? I'm doing this but I can`t:</p>
  
  <pre><code>&lt;?php
  
  $data ='
  one;uno
  two;dos
  three;tres
  four;cuatro
  ';
  
  $line = explode("\n", $data);
  for($i = 0; $i&lt;count($line); $i++) {        
  
  $item = explode(";", $line[$i]);
  
  $coma = implode(', ', $item[0{);
  
  echo $coma;
  
  }
  ?&gt;
  </code></pre>