View Single Post
Old 05-27-2008, 12:57 AM   #7 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Like this?
PHP Code:
<?php
function bomb($array) { return explode('::'$array); }
$bracketArray = array ( 
            
=> '1::8',
            
=> '2::4',
            
=> '3::2',
            
=> '4::1'
            
);        
$bracketArray array_map('bomb'$bracketArray);
foreach(
$bracketArray as $bracket)
{
    
    echo
'<div style="width:90px; float:left;">',
        
'<strong>Round '$bracket[0], '</strong><br />';
        
    for(
$i=0$i $bracket[1]; $i++)
    {
        echo 
'<span style="float:left;clear:both;">',$i 1,'</span>';
    }
    echo
'</div>';
}
hope i havent missed the mark
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)

Last edited by sketchMedia : 05-27-2008 at 02:22 AM. Reason: im an idiot
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
ReSpawN (05-27-2008)