public function getCloudLocations($platform) { $ret = []; $res = $this->cadb->Execute("\n SELECT DISTINCT `url`, `cloud_location` FROM `price_history`\n WHERE `platform` = ?\n ", [$platform]); while ($rec = $res->FetchRow()) { $url = is_null($rec['url']) ? '' : $rec['url']; $ret[$url][] = $rec['cloud_location']; } return $ret; }