I have a games list that is constantly growing. I want to make a list like: http://miniclip.com with all the names of the games in even columns. Here is the best I got so far: http://www.freeonlinegamefinder.com/footer.php Any ideas?
put the list into an array, sort the array alphabetically (arsort i believe), then output 1/4 of the array elements using something like $numcolumns=4; $column=(int) (count($array)/$numcolumns); for($i=0;$i<$numcolumns;$i++) { for($x=0;$x<$column;$x++) { echo $array[$x]; }}
$currentletter=substr($array[$x],0,1); if ($currentletter!==$previousletter) { echo $currentletter; $currentletter=$previousletter; }