fork download
  1. <?php
  2. $rows = array("125", "148", "157", "169", "185");
  3. $all_ids = "";
  4. foreach ($rows as $item){
  5. $all_ids .= $item.", ";
  6. }
  7.  
  8. $all_ids = substr($all_ids, -0, -2);
  9. echo $all_ids;
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
125, 148, 157, 169, 185