⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ps_country.inc

📁 phpShop是一个基于php的分布式电子商务模块
💻 INC
📖 第 1 页 / 共 2 页
字号:
            'ML' => 'Mali, Republic of',            'MT' => 'Malta, Republic of',            'MH' => 'Marshall Islands',            'MQ' => 'Martinique',            'MR' => 'Mauritania, Islamic Republic of',            'MU' => 'Mauritius',            'YT' => 'Mayotte',            'MX' => 'Mexico, United Mexican States',            'FM' => 'Micronesia, Federated States of',            'MD' => 'Moldova, Republic of',            'MC' => 'Monaco, Principality of',            'MN' => 'Mongolia, Mongolian People\'s Republic',            'MS' => 'Montserrat',            'MA' => 'Morocco, Kingdom of',            'MZ' => 'Mozambique, People\'s Republic of',            'MM' => 'Myanmar',            'NA' => 'Namibia',            'NR' => 'Nauru, Republic of',            'NP' => 'Nepal, Kingdom of',            'AN' => 'Netherlands Antilles',            'NL' => 'Netherlands, Kingdom of the',            'NC' => 'New Caledonia',            'NZ' => 'New Zealand',            'NI' => 'Nicaragua, Republic of',            'NE' => 'Niger, Republic of the',            'NG' => 'Nigeria, Federal Republic of',            'NU' => 'Niue, Republic of',            'NF' => 'Norfolk Island',            'MP' => 'Northern Mariana Islands',            'NO' => 'Norway, Kingdom of',            'OM' => 'Oman, Sultanate of',            'PK' => 'Pakistan, Islamic Republic of',            'PW' => 'Palau',            'PS' => 'Palestinian Territory, Occupied',            'PA' => 'Panama, Republic of',            'PG' => 'Papua New Guinea',            'PY' => 'Paraguay, Republic of',            'PE' => 'Peru, Republic of',            'PH' => 'Philippines, Republic of the',            'PN' => 'Pitcairn Island',            'PL' => 'Poland, Polish People\'s Republic',            'PT' => 'Portugal, Portuguese Republic',            'PR' => 'Puerto Rico',            'QA' => 'Qatar, State of',            'RE' => 'Reunion',            'RO' => 'Romania, Socialist Republic of',            'RU' => 'Russian Federation',            'RW' => 'Rwanda, Rwandese Republic',            'SH' => 'St. Helena',            'KN' => 'St. Kitts and Nevis',            'LC' => 'St. Lucia',            'PM' => 'St. Pierre and Miquelon',            'VC' => 'St. Vincent and the Grenadines',            'WS' => 'Samoa, Independent State of',            'SM' => 'San Marino, Republic of',            'ST' => 'Sao Tome and Principe, Democratic Republic of',            'SA' => 'Saudi Arabia, Kingdom of',            'SN' => 'Senegal, Republic of',            'SC' => 'Seychelles, Republic of',            'SL' => 'Sierra Leone, Republic of',            'SG' => 'Singapore, Republic of',            'SK' => 'Slovakia (Slovak Republic)',            'SI' => 'Slovenia',            'SB' => 'Solomon Islands',            'SO' => 'Somalia, Somali Republic',            'ZA' => 'South Africa, Republic of',            'GS' => 'South Georgia and the South Sandwich Islands',            'ES' => 'Spain, Spanish State',            'LK' => 'Sri Lanka, Democratic Socialist Republic of',            'SD' => 'Sudan, Democratic Republic of the',            'SR' => 'Suriname, Republic of',            'SJ' => 'Svalbard & Jan Mayen Islands',            'SZ' => 'Swaziland, Kingdom of',            'SE' => 'Sweden, Kingdom of',            'CH' => 'Switzerland, Swiss Confederation',            'SY' => 'Syrian Arab Republic',            'TW' => 'Taiwan, Province of China',            'TJ' => 'Tajikistan',            'TZ' => 'Tanzania, United Republic of',            'TH' => 'Thailand, Kingdom of',            'TG' => 'Togo, Togolese Republic',            'TK' => 'Tokelau (Tokelau Islands)',            'TO' => 'Tonga, Kingdom of',            'TT' => 'Trinidad and Tobago, Republic of',            'TN' => 'Tunisia, Republic of',            'TR' => 'Turkey, Republic of',            'TM' => 'Turkmenistan',            'TC' => 'Turks and Caicos Islands',            'TV' => 'Tuvalu',            'VI' => 'US Virgin Islands',            'UG' => 'Uganda, Republic of',            'UA' => 'Ukraine',            'AE' => 'United Arab Emirates',            'GB' => 'United Kingdom of Great Britain & N. Ireland',            'UM' => 'United States Minor Outlying Islands',            'US' => 'United States of America',            'UY' => 'Uruguay, Eastern Republic of',            'UZ' => 'Uzbekistan',            'VU' => 'Vanuatu',            'VE' => 'Venezuela, Bolivarian Republic of',            'VN' => 'Viet Nam, Socialist Republic of',            'WF' => 'Wallis and Futuna Islands',            'EH' => 'Western Sahara',            'YE' => 'Yemen',            'YU' => 'Yugoslavia, Socialist Federal Republic of',            'ZM' => 'Zambia, Republic of',            'ZW' => 'Zimbabwe'        );        $this->twonumber = array(            'AF' => '004',            'AL' => '008',            'DZ' => '012',            'AS' => '016',            'AD' => '020',            'AO' => '024',            'AI' => '660',            'AQ' => '010',            'AG' => '028',            'AR' => '032',            'AM' => '051',            'AW' => '533',            'AU' => '036',            'AT' => '040',            'AZ' => '031',            'BS' => '044',            'BH' => '048',            'BD' => '050',            'BB' => '052',            'BY' => '112',            'BE' => '056',            'BZ' => '084',            'BJ' => '204',            'BM' => '060',            'BT' => '064',            'BO' => '068',            'BA' => '070',            'BW' => '072',            'BV' => '074',            'BR' => '076',            'IO' => '086',            'VG' => '092',            'BN' => '096',            'BG' => '100',            'BF' => '854',            'BI' => '108',            'KH' => '116',            'CM' => '120',            'CA' => '124',            'CV' => '132',            'KY' => '136',            'CF' => '140',            'TD' => '148',            'CL' => '152',            'CN' => '156',            'CX' => '162',            'CC' => '166',            'CO' => '170',            'KM' => '174',            'CD' => '180',            'CG' => '178',            'CK' => '184',            'CR' => '188',            'CI' => '384',            'CU' => '192',            'CY' => '196',            'CZ' => '203',            'DK' => '208',            'DJ' => '262',            'DM' => '212',            'DO' => '214',            'TL' => '626',            'EC' => '218',            'EG' => '818',            'SV' => '222',            'GQ' => '226',            'ER' => '232',            'EE' => '233',            'ET' => '231',            'FO' => '234',            'FK' => '238',            'FJ' => '242',            'FI' => '246',            'FR' => '250',            'GF' => '254',            'PF' => '258',            'TF' => '260',            'GA' => '266',            'GM' => '270',            'GE' => '268',            'DE' => '276',            'GH' => '288',            'GI' => '292',            'GR' => '300',            'GL' => '304',            'GD' => '308',            'GP' => '312',            'GU' => '316',            'GT' => '320',            'GN' => '324',            'GW' => '624',            'GY' => '328',            'HT' => '332',            'HM' => '334',            'VA' => '336',            'HN' => '340',            'HK' => '344',            'HR' => '191',            'HU' => '348',            'IS' => '352',            'IN' => '356',            'ID' => '360',            'IR' => '364',            'IQ' => '368',            'IE' => '372',            'IL' => '376',            'IT' => '380',            'JM' => '388',            'JP' => '392',            'JO' => '400',            'KZ' => '398',            'KE' => '404',            'KI' => '296',            'KP' => '408',            'KR' => '410',            'KW' => '414',            'KG' => '417',            'LA' => '418',            'LV' => '428',            'LB' => '422',            'LS' => '426',            'LR' => '430',            'LY' => '434',            'LI' => '438',            'LT' => '440',            'LU' => '442',            'MO' => '446',            'MK' => '807',            'MG' => '450',            'MW' => '454',            'MY' => '458',            'MV' => '462',            'ML' => '466',            'MT' => '470',            'MH' => '584',            'MQ' => '474',            'MR' => '478',            'MU' => '480',            'YT' => '175',            'MX' => '484',            'FM' => '583',            'MD' => '498',            'MC' => '492',            'MN' => '496',            'MS' => '500',            'MA' => '504',            'MZ' => '508',            'MM' => '104',            'NA' => '516',            'NR' => '520',            'NP' => '524',            'AN' => '530',            'NL' => '528',            'NC' => '540',            'NZ' => '554',            'NI' => '558',            'NE' => '562',            'NG' => '566',            'NU' => '570',            'NF' => '574',            'MP' => '580',            'NO' => '578',            'OM' => '512',            'PK' => '586',            'PW' => '585',            'PS' => '275',            'PA' => '591',            'PG' => '598',            'PY' => '600',            'PE' => '604',            'PH' => '608',            'PN' => '612',            'PL' => '616',            'PT' => '620',            'PR' => '630',            'QA' => '634',            'RE' => '638',            'RO' => '642',            'RU' => '643',            'RW' => '646',            'SH' => '654',            'KN' => '659',            'LC' => '662',            'PM' => '666',            'VC' => '670',            'WS' => '882',            'SM' => '674',            'ST' => '678',            'SA' => '682',            'SN' => '686',            'SC' => '690',            'SL' => '694',            'SG' => '702',            'SK' => '703',            'SI' => '705',            'SB' => '090',            'SO' => '706',            'ZA' => '710',            'GS' => '239',            'ES' => '724',            'LK' => '144',            'SD' => '736',            'SR' => '740',            'SJ' => '744',            'SZ' => '748',            'SE' => '752',            'CH' => '756',            'SY' => '760',            'TW' => '158',            'TJ' => '762',            'TZ' => '834',            'TH' => '764',            'TG' => '768',            'TK' => '772',            'TO' => '776',            'TT' => '780',            'TN' => '788',            'TR' => '792',            'TM' => '795',            'TC' => '796',            'TV' => '798',            'VI' => '850',            'UG' => '800',            'UA' => '804',            'AE' => '784',            'GB' => '826',            'UM' => '581',            'US' => '840',            'UY' => '858',            'UZ' => '860',            'VU' => '548',            'VE' => '862',            'VN' => '704',            'WF' => '876',            'EH' => '732',            'YE' => '887',            'YU' => '891',            'ZM' => '894',            'ZW' => '716'        );    }    function getTwoLetterCode($input='') {        $retval = '';        $code = $input ? $input : $this->code;        $code = strtoupper($code);        $len  = strlen($code);        if ($len == 2) {            $retval = $code;        } elseif ($len == 3) {            if (is_numeric($code)) {                $numbertwo = array_flip($this->twonumber);                $retval = $numbertwo["$code"];            } else {                $threetwo = array_flip($this->twothree);                $retval = $threetwo[$code];            }        }        return($retval);    }    function getThreeLetterCode($input='') {        $retval = '';        $code = $input ? $input : $this->code;        $code = strtoupper($code);        $len  = strlen($code);        if ($len == 2) {            $retval = $this->twothree[$code];        } elseif ($len == 3) {            if (is_numeric($code)) {                $code2 = $this->getTwoLetterCode($code);                $retval = $this->twothree[$code2];            } else {                $retval = $code;            }        }        return($retval);    }    function getNumber($input='') {        $retval = '';        $code = $input ? $input : $this->code;        $code = strtoupper($code);        $len  = strlen($code);        if ($len == 2) {            $retval = $this->twonumber[$code];        } elseif ($len == 3) {            if (is_numeric($code)) {                $retval = $code;            } else {                $code2 = $this->getTwoLetterCode($code);                $retval = $this->twonumber[$code2];            }        }        return($retval);    }    function getCountry($input='') {        $retval = '';        $code = $input ? $input : $this->code;        $code = strtoupper($code);        $len  = strlen($code);        if ($len == 2) {            $retval = $this->twocountry[$code];        } elseif ($len == 3) {            $code2 = $this->getTwoLetterCode($code);            $retval = $this->twocountry[$code2];        }        return($retval);    }}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -