05-27-2008, 12:57 AM
|
#7 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Like this?
PHP Code:
<?php function bomb($array) { return explode('::', $array); } $bracketArray = array ( 0 => '1::8', 1 => '2::4', 2 => '3::2', 3 => '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
|
|
|
|