fork download
  1. <?php
  2.  
  3. $rows = array("125", "148", "157", "169", "185");
  4. $all_ids = "";
  5. foreach ($rows as $item){
  6. $all_ids .= $item.", ";
  7. }
  8.  
  9. echo trim(trim($all_ids),',');
  10.  
  11.  
  12.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
125, 148, 157, 169, 185