=0;$i--){ $out.=array_pop($word); if($i%3==0 && $i!=0){ $out.=','; } } echo $out; ?>