function getrankings($code) { $result = Leaderboard::getStaticRankTableInJSON($code); return json_decode($result['ranktable'], true); }