1 2 3 4 5 6 7 8
<?php foreach(array(1, 2, 3) as $item) { $first = isset($first) && print ",<br>\n"; echo "$item"; }
1 2 3
1,<br> 2,<br> 3