/** * @param int $groupID * @return array */ public function getAdminGroupServers($groupID) { $servers = array(); $fh = fopen($this->filepath_adminGroupServerAssoc, 'r'); while ($line = fgets($fh)) { $line = HelperFunctions::stripNewline($line); $assoc = explode(';', $line); if (intval($assoc[0]) == $groupID) { $servers[] = $assoc[1]; } } fclose($fh); sort($servers); return $servers; }