fork download
  1. <?php
  2.  
  3. $arr = array('one', 'two', 'three');
  4.  
  5. $str1 = implode($arr, ', ');
  6. $str2 = implode(', ', $arr);
  7.  
  8. echo $str1 . "\n";
  9. echo $str2;
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
one, two, three
one, two, three