function get_all_fiat_currencies() { global $_cached_get_all_fiat_currencies; if ($_cached_get_all_fiat_currencies === null) { $currencies = Currencies::getFiatCurrencies(); usort($currencies, 'sort_currency_list'); $_cached_get_all_fiat_currencies = $currencies; } return $_cached_get_all_fiat_currencies; }