<?php $colors = array( 'red', 'green' ); //$color=""; $j=0; foreach($colors as $color) { while($j <6) { if($j>1) $value = $value."($j)"; $color[]=$value; $j++; } } print_r($color);
You have javascript disabled. You will not be able to edit any code.