Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 506

Warning: Incorrect key file for table './miphpf_miphpfcom/watchdog.MYI'; try to repair it query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.', 2, '', 'http://www.miphpf.com/manual/countries_states.html', '', '44.192.44.30', 1721671916) in /home/miphpf/domains/miphpf.com/public_html/includes/database.mysql.inc on line 121
Countries and states | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.
Home

Countries and states

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.

$miCountries is asociative array in the global scope, where for each element, key is the three letter code, and value is the country full name.

<?php
$miCountries
= array(
   
'AFG' => 'Afghanistan',
   
'ALB' => 'Albania',
   
'DZA' => 'Algeria',
   
'ASM' => 'American Samoa',
   
// ...
);
?>

$miUSStates is asociative array (with the states in the US) in the global scope, where for each element, key is the two letter code, and value is the state full name.

<?php
$miUSStates
= array(
   
'AL' => 'Alabama',
   
'AK' => 'Alaska',
   
'AS' => 'American Samoa',
   
'AZ' => 'Arizona',
   
// ...
);
?>
$miCanadianProvinces is asociative array (with the provinces in Canada) in the global scope, where for each element, key is the two letter code, and value is the province full name.
<?php
$miCanadianProvinces
= array(
   
'AB' => 'Alberta',
   
'BC' => 'British Columbia',
   
'MB' => 'Manitoba',
   
'NB' => 'New Brunswick',
   
// ...
);
?>