function get_all_cryptocurrencies() { global $_cached_get_all_cryptocurrencies; if ($_cached_get_all_cryptocurrencies === null) { $currencies = Currencies::getCryptocurrencies(); usort($currencies, 'sort_currency_list'); $_cached_get_all_cryptocurrencies = $currencies; } return $_cached_get_all_cryptocurrencies; }