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

        $listCodes = [];

        foreach ($phone_codes as $code => $value) {
            $listCodes[$code] = $value;
        }

        return $listCodes;
    }
public static function phoneCodesList()
    {
        $path = dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR.'data/phone.json';
        $phone_codes = self::readJson($path, true);

        $listCodes = [];

        foreach ($phone_codes as $code => $value) {
            $listCodes[$code] = $value;
        }

        return $listCodes;
    }
public static function phoneCodesList ( ) { $ path = dirname ( realpath ( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'data/phone.json' ; $ phone_codes = self :: readJson ( $ path , true ) ; $ listCodes = [ ] ; foreach ( $ phone_codes as $ code => $ value ) { $ listCodes [ $ code ] = $ value ; } return $ listCodes ; }
returns a list of phones codes and there country code.

@return array
returns a list of phones codes and there country code .