[eluser]CroNiX[/eluser]
You can adapt something like this:
Code:
$words = array('one', 'two', 'three', 'four', 'five', 'six', 'seven');
//get our upper limit using ceil for rounding so if odd number left list will have the extra
$break_point = ceil(count($words) / 2);
$new_ul = '<ul style="width:150px;float:left">';
$html = $new_ul;
foreach($words as $counter => $word)
{
//if we reached our limit, close first ul and start new one
if($counter == $break_point)
{
$html .= '</ul>' . $new_ul;
}
//increment the counter for display since it starts at 0
$cur_number = $counter + 1;
$html .= '<li>' . $cur_number . ' - ' . $word . '</li>';
}
$html .= '</ul>';
echo $html;