'; $proj_list = array(); shuffle($areas); foreach ($areas as $area) { $area_name = $area[0]; $projects = $area[1]; shuffle($projects); foreach ($projects as $p) { $np = null; if ($p[5]) { $np->image = $p[5]; } $np->url = $p[1]; $np->home = $p[2]; $np->general_area = $area_name; $np->specific_area = $p[3]; $np->description = $p[4]; $np->name = $p[0]; $proj_list[] = $np; } } foreach($proj_list as $p) { echo " $p->name $p->url $p->general_area $p->specific_area $p->description $p->home "; if ($p->image) { echo " http://boinc.berkeley.edu/images/$p->image "; } echo " "; } echo " "; ?>