$usergroupdata = array();while ($usergroup = $vbulletin->db->fetch_array($usergroups)){ $usergroupdata[$usergroup['usergroupid']] = $usergroup['title'];}print_r($usergroupdata);