public static function currencyList()
    {
        $path = dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR.'data/currency.json';
        $currency = self::readJson($path, true);

        $listCurrency = [];

        foreach ($currency['Names'] as $code => $value) {
            $listCurrency[$code] = $value[1];
        }

        return $listCurrency;
    }
public static function currencyList()
    {
        $path = dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR.'data/currency.json';
        $currency = self::readJson($path, true);

        $listCurrency = [];

        foreach ($currency['Names'] as $code => $value) {
            $listCurrency[$code] = $value[1];
        }

        return $listCurrency;
    }
public static function currencyList ( ) { $ path = dirname ( realpath ( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'data/currency.json' ; $ currency = self :: readJson ( $ path , true ) ; $ listCurrency = [ ] ; foreach ( $ currency [ 'Names' ] as $ code => $ value ) { $ listCurrency [ $ code ] = $ value [ 1 ] ; } return $ listCurrency ; }
returns a list of currency and there codes.

@return array
returns a list of currency and there codes .