fork(124) download
  1. <?php
  2.  
  3. $arr = array(1,2,3,4,5,6,7,8,9);
  4.  
  5. $string = rtrim(implode(',', $arr), ',');
  6.  
  7. echo $string;
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
1,2,3,4,5,6,7,8,9