<?php $a = array(1,2,3); $string = current($a); $i = 0; while(next($a) && strlen($string.current($a)) < 3){ $string .= current(a); } echo $string;
You have javascript disabled. You will not be able to edit any code.