' . locale_get_display_region(urldecode($_GET['locale']), $lg) . ''; } else if (isset($_POST['locale'])) { if (locale_get_display_region(urldecode($_POST['locale']), 'en') == '') { $lg=explode('_', urldecode($_POST['locale']))[0]; $lg=explode('-', $lg)[0]; } $for=' of ' . locale_get_display_region(urldecode($_POST['locale']), $lg) . ''; } if (strpos($for, '>') !== false) { $for=''; } $lochelper="// If you modify this array, also update default language / dialect below ... thanks to Google https://www.google.com/intl/en/chrome/demos/speech.html var langs = [['Afrikaans', ['af-ZA']], ['አማርኛ', ['am-ET']], ['Azərbaycanca', ['az-AZ']], ['বাংলা', ['bn-BD', 'বাংলাদেশ'], ['bn-IN', 'ভারত']], ['Bahasa Indonesia',['id-ID']], ['Bahasa Melayu', ['ms-MY']], ['Català', ['ca-ES']], ['Čeština', ['cs-CZ']], ['Dansk', ['da-DK']], ['Deutsch', ['de-DE']], ['English', ['en-AU', 'Australia'], ['en-CA', 'Canada'], ['en-IN', 'India'], ['en-KE', 'Kenya'], ['en-TZ', 'Tanzania'], ['en-GH', 'Ghana'], ['en-NZ', 'New Zealand'], ['en-NG', 'Nigeria'], ['en-ZA', 'South Africa'], ['en-PH', 'Philippines'], ['en-GB', 'United Kingdom'], ['en-US', 'United States']], ['Español', ['es-AR', 'Argentina'], ['es-BO', 'Bolivia'], ['es-CL', 'Chile'], ['es-CO', 'Colombia'], ['es-CR', 'Costa Rica'], ['es-EC', 'Ecuador'], ['es-SV', 'El Salvador'], ['es-ES', 'España'], ['es-US', 'Estados Unidos'], ['es-GT', 'Guatemala'], ['es-HN', 'Honduras'], ['es-MX', 'México'], ['es-NI', 'Nicaragua'], ['es-PA', 'Panamá'], ['es-PY', 'Paraguay'], ['es-PE', 'Perú'], ['es-PR', 'Puerto Rico'], ['es-DO', 'República Dominicana'], ['es-UY', 'Uruguay'], ['es-VE', 'Venezuela']], ['Euskara', ['eu-ES']], ['Filipino', ['fil-PH']], ['Français', ['fr-FR']], ['Basa Jawa', ['jv-ID']], ['Galego', ['gl-ES']], ['ગુજરાતી', ['gu-IN']], ['Hrvatski', ['hr-HR']], ['IsiZulu', ['zu-ZA']], ['Íslenska', ['is-IS']], ['Italiano', ['it-IT', 'Italia'], ['it-CH', 'Svizzera']], ['ಕನ್ನಡ', ['kn-IN']], ['ភាសាខ្មែរ', ['km-KH']], ['Latviešu', ['lv-LV']], ['Lietuvių', ['lt-LT']], ['മലയാളം', ['ml-IN']], ['मराठी', ['mr-IN']], ['Magyar', ['hu-HU']], ['ລາວ', ['lo-LA']], ['Nederlands', ['nl-NL']], ['नेपाली भाषा', ['ne-NP']], ['Norsk bokmål', ['nb-NO']], ['Polski', ['pl-PL']], ['Português', ['pt-BR', 'Brasil'], ['pt-PT', 'Portugal']], ['Română', ['ro-RO']], ['සිංහල', ['si-LK']], ['Slovenščina', ['sl-SI']], ['Basa Sunda', ['su-ID']], ['Slovenčina', ['sk-SK']], ['Suomi', ['fi-FI']], ['Svenska', ['sv-SE']], ['Kiswahili', ['sw-TZ', 'Tanzania'], ['sw-KE', 'Kenya']], ['ქართული', ['ka-GE']], ['Հայերեն', ['hy-AM']], ['தமிழ்', ['ta-IN', 'இந்தியா'], ['ta-SG', 'சிங்கப்பூர்'], ['ta-LK', 'இலங்கை'], ['ta-MY', 'மலேசியா']], ['తెలుగు', ['te-IN']], ['Tiếng Việt', ['vi-VN']], ['Türkçe', ['tr-TR']], ['اُردُو', ['ur-PK', 'پاکستان'], ['ur-IN', 'بھارت']], ['Ελληνικά', ['el-GR']], ['български', ['bg-BG']], ['Pусский', ['ru-RU']], ['Српски', ['sr-RS']], ['Українська', ['uk-UA']], ['한국어', ['ko-KR']], ['中文', ['cmn-Hans-CN', '普通话 (中国大陆)'], ['cmn-Hans-HK', '普通话 (香港)'], ['cmn-Hant-TW', '中文 (台灣)'], ['yue-Hant-HK', '粵語 (香港)']], ['日本語', ['ja-JP']], ['हिन्दी', ['hi-IN']], ['ภาษาไทย', ['th-TH']]]; "; $lochelpertwo=file_get_contents('http://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'); function user_agent() { // thanks to https://stackoverflow.com/questions/6322112/check-if-php-page-is-accessed-from-an-ios-device/6322131 $iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); //file_put_contents('./public/upload/install_log/agent',$_SERVER['HTTP_USER_AGENT']); if ($iPad||$iPhone||$iPod) { return 'ios'; } else if ($android) { return 'android'; } else { return 'pc'; } } function server_remote_addr() { $rma = $_SERVER['REMOTE_ADDR']; $ua = strtolower($_SERVER['HTTP_USER_AGENT']); // you can add different browsers with the same way .. if (1 == 1) { if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua)) $rma = '000000'.$rma; elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua)) $rma = '00000'.$rma; elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua)) $rma = '0000'.$rma; elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua)) $rma = '000'.$rma; elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua)) $rma = '00'.$rma; elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua)) $rma = '0'.$rma; } return str_replace(':','_',str_replace('.','_',$rma)); } // Eg. BahamasNassau ... thanks //$capbits=@file_get_contents("https://www.countries-ofthe-world.com/capitals-of-the-world.html"); $capbits=" CountryCapital city A AfghanistanKabul AlbaniaTirana AlgeriaAlgiers AndorraAndorra la Vella AngolaLuanda Antigua and BarbudaSaint John's ArgentinaBuenos Aires ArmeniaYerevan AustraliaCanberra AustriaVienna AzerbaijanBaku B BahamasNassau BahrainManama BangladeshDhaka BarbadosBridgetown BelarusMinsk BelgiumBrussels BelizeBelmopan BeninPorto-Novo BhutanThimphu BoliviaLa Paz (administrative), Sucre (judicial) Bosnia and HerzegovinaSarajevo BotswanaGaborone BrazilBrasilia BruneiBandar Seri Begawan BulgariaSofia Burkina FasoOuagadougou BurundiBujumbura C Cabo VerdePraia CambodiaPhnom Penh CameroonYaounde CanadaOttawa Central African RepublicBangui ChadN'Djamena ChileSantiago ChinaBeijing ColombiaBogotá ComorosMoroni Democratic Republic of the CongoKinshasa Republic of the CongoBrazzaville Costa RicaSan Jose Cote d'IvoireYamoussoukro CroatiaZagreb CubaHavana CyprusNicosia Czech RepublicPrague D DenmarkCopenhagen DjiboutiDjibouti (city) DominicaRoseau Dominican RepublicSanto Domingo E EcuadorQuito EgyptCairo El SalvadorSan Salvador Equatorial GuineaMalabo EritreaAsmara EstoniaTallinn EthiopiaAddis Ababa F FijiSuva FinlandHelsinki FranceParis G GabonLibreville GambiaBanjul GeorgiaTbilisi GermanyBerlin GhanaAccra GreeceAthens GrenadaSaint George's GuatemalaGuatemala City GuineaConakry Guinea-BissauBissau GuyanaGeorgetown H HaitiPort-au-Prince HondurasTegucigalpa HungaryBudapest I IcelandReykjavik IndiaNew Delhi IndonesiaJakarta IranTehran IraqBaghdad IrelandDublin IsraelJerusalem ItalyRome J JamaicaKingston JapanTokyo JordanAmman K KazakhstanAstana KenyaNairobi KiribatiSouth Tarawa KosovoPristina KuwaitKuwait City KyrgyzstanBishkek L LaosVientiane LatviaRiga LebanonBeirut LesothoMaseru LiberiaMonrovia LibyaTripoli LiechtensteinVaduz LithuaniaVilnius LuxembourgLuxembourg "; function yourflag($incn) { global $iso_country_codes, $foundcc; for ($jk=1; $jk"; } $locsel=''; $locit=user_agent(); $arrl=ResourceBundle::getLocales(''); for ($df=0; $df 1) { $endih.=' ' . explode("'", explode("['", $ends[0])[-1 + sizeof(explode("['", $ends[0]))])[0]; } if (strpos($lochelpertwo, '>' . explode('-',explode('_',$arrl[$df])[0])[0] . '') !== false) { //echo "yes " . explode('-',explode('_',$arrl[$df])[0])[0] . "\n
"; //echo substr(explode('>' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0], -250,250); $interim=explode('', explode('' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0])[-1 + sizeof(explode('' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0]))])[0]; //)[-1 + sizeof(explode('>', explode('', explode('' . explode('-',explode('_',$arrl[$df])[0])[0] . '', $lochelpertwo)[0]; //exit; $aintm=explode('>', $interim)[-1 + sizeof(explode('>', $interim))]; if (strpos($endih, ' ' . $aintm) === false) { if ($endih != '') { $endih.=' (' . $aintm . ')'; } else { $endih.=' ' . $aintm; } } } if ($lastword == strtoupper($lastword) && strlen($lastword) == 2) { $endih.=' ' . orflag($lastword); } if ($endih != '') { $endih="\t" . $endih . ''; } if (strpos(($arrl[$df] . '_'), '_') !== false) { //} && strpos($arrl[$df], '0') === false) { if ($locsel == '') { $locsel=""; } if ($locit != 'pc' && 1 == 1) { $locsel=str_replace("", "", $locsel); } else { $locsel=str_replace("", "", $locsel); } } } function countryid($cinis) { return str_replace('.', '_', str_replace(' ', '_', str_replace('"', '_', str_replace("'", "_", $cinis)))); } function mapcurrency($cincountry) { global $curbits, $thiscur, $thiscode; $retcap=""; $thiscur=""; $thiscode=""; $ctrys=explode(" title='", $cincountry); if (sizeof($ctrys) == 1) { $ctrys=explode(" title='", str_replace("'","`",$cincountry)); } if (sizeof($ctrys) > 1) { $ctryiss=explode("'", $ctrys[1]); $huhbits=explode($ctryiss[0] . "", str_replace("
', explode('>  ' . explode(' (', explode(' ',$cname)[0] . ' ' . explode(' ',$cname)[1])[0], $curbits)[1])[2])[-1 + sizeof(explode('>', explode('', explode('>  ' . explode(' (', explode(' ',$cname)[0] . ' ' . explode(' ',$cname)[1])[0], $curbits)[1])[2]))]; } else if (sizeof($vsr) == 2) { $currency=explode('>', explode('', explode('>  ' . explode(' ',explode(' (', $cname)[0])[0], $curbits)[1])[2])[-1 + sizeof(explode('>', explode('', explode('>  ' . explode(' ',explode(' (', $cname)[0])[0], $curbits)[1])[2]))]; } else if (strpos($curbits, ' ' . $cname . '') !== false) { $currency=explode('>', explode('', explode(' ' . $cname . '', $curbits)[1])[1])[-1 + sizeof(explode('>', explode('', explode(' ' . $cname . '', $curbits)[1])[1]))]; } else if (strpos($curbits, '>  ' . explode(' (', $cname)[0]) !== false) { //$currency=explode('>', explode('', explode('>  ' . explode(' ',explode('>  ' . explode(' (', $cname)[0], $curbits)[1])[2])[-1 + sizeof(explode('>', explode('', explode('>  ' . explode(' (', $cname)[0], $curbits)[1])[2]))]; $currency=explode('>', explode('', explode('>  ' . explode(' (', $cname)[0], $curbits)[1])[2])[-1 + sizeof(explode('>', explode('', explode('>  ' . explode(' (', $cname)[0], $curbits)[1])[2]))]; } $currency=explode(' ', $currency)[0]; } } } echo "PHP Intl Currency via Locale - RJM Programming - December, 2024 var em='m'; var lastokn=''; var okn=''; var lastconto=[]; var morechanges=true; var lastwo=''; var woi=null; var oko=null; var nlastokn=''; var xokn=''; var xlastconto=[]; var xmorechanges=true; var xlastwo=''; var xwoi=null; var xoko=null; var ctynames=\"" . str_replace("\n","",$ctynames) . "\"; function expandokn() { var iut=0, pls=[],firsttz='',tzsih='',xtzsih='',thatloc='', wds=[]; if (okn.substring(0,1) == okn.substring(0,1).toUpperCase() && okn != okn.toUpperCase()) { document.getElementById(em + 'das').innerHTML='Country Name
'; pls=ctynames.split('>' + okn); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut' + okn + pls[iut].split('<')[0] + ' ' + jorflag(pls[eval(-1 + iut)].slice(-3).substring(0,2)) + ''; } } } else if (okn.substring(0,1) == okn.substring(0,1).toLowerCase() && okn == okn.toLowerCase()) { xtzsih=document.getElementById('tzsel').innerHTML; document.getElementById(em + 'das').innerHTML+='

Locale
'; tzsih=document.getElementById('locsel').innerHTML; //alert(tzsih.length); pls=tzsih.split( value='\"' + okn); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut')[1].split('<')[0].split(' ')[0].split('+')[0]; wds=thatloc.split('_'); if (eval('' + wds[eval(-1 + wds.length)].length) == 2 && wds[eval(-1 + wds.length)] == wds[eval(-1 + wds.length)].toUpperCase() && eval('' + wds.length) > 1) { //alert('1:' + wds[eval(-1 + wds.length)]); firsttz=''; if (xtzsih.indexOf(',' + wds[eval(-1 + wds.length)] + ',') != -1) { firsttz=xtzsih.split(',' + wds[eval(-1 + wds.length)] + ',')[1].split('>')[1].split('<')[0].split(' ')[0]; //alert('2:' + firsttz); } document.getElementById(em + 'das').innerHTML+=' ' + thatloc + ' ' + jorflag(wds[eval(-1 + wds.length)]) + ''; } else { document.getElementById(em + 'das').innerHTML+=' ' + thatloc + ''; } } } } else if (okn.substring(0,1) == okn.substring(0,1).toUpperCase() && okn == okn.toUpperCase() && eval('' + okn.length) == 2) { document.getElementById(em + 'das').innerHTML='Country Name
'; pls=ctynames.split(\"'\" + okn + \"'>\"); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut' + pls[iut].split('<')[0] + ' ' + jorflag(okn) + ''; } } tzsih=document.getElementById('tzsel').innerHTML; if (tzsih.indexOf(',' + okn + ',') != -1) { firsttz=tzsih.split(',' + okn + ',')[1].split('>')[1].split('<')[0].split(' ')[0]; } document.getElementById(em + 'das').innerHTML+='

Locale
'; tzsih=document.getElementById('locsel').innerHTML; //alert(tzsih.length); pls=tzsih.split('_' + okn + '\"'); if (eval('' + pls.length) > 1) { //alert('here'); for (iut=1; iut' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(okn) + ''; } } } } function maybesel(oin) { if (oin.value.trim() != '') { var wdsa=document.getElementById('locsel').innerHTML.split(' value=\"' + oin.value + '\"'); if (eval('' + wdsa.length) == 1) { wdsa=document.getElementById('locsel').innerHTML.split('>' + oin.value + '<'); } } } function jorflag(thiscc) { var lri='ABCDEFGHIJKLMNOPQRSTUVWXYZ'; var dri=['127462','127463','127464','127465','127466','127467','127468','127469','127470','127471','127472','127473','127474','127475','127476','127477','127478','127479','127480','127481','127482','127483','127484','127485','127486','127487']; var ccsuff='', ccchar=' ', cde=''; for (var iccsuff=0; iccsuff 1) { //alert('here'); for (iut=1; iut' + pls[iut].split('>')[1].split('<')[0].split(' ')[0].split('+')[0] + ' ' + jorflag(ao.title.split(' ')[0]) + ''; } } xokn=''; } } function analr(ao,tzi) { // locale if (ao.innerHTML.indexOf('_') != -1) { document.getElementById('locsel').value=ao.innerHTML.split(' ')[0]; document.getElementById('locale').value=ao.innerHTML.split(' ')[0]; document.getElementById('justincase').src=document.URL.split('?')[0].split('#')[0] + '?ccode=' + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-')[eval(-1 + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-').length)]; //document.getElementById('timezone').value=tzi.split(' ')[0]; document.getElementById(em + 'das').innerHTML=''; okn=''; } } function analq(ao,tzi) { // locale if (ao.innerHTML.indexOf('_') != -1) { document.getElementById('locsel').value=ao.innerHTML.split(' ')[0]; document.getElementById('locale').value=ao.innerHTML.split(' ')[0]; document.getElementById('justincase').src=document.URL.split('?')[0].split('#')[0] + '?ccode=' + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-')[eval(-1 + document.getElementById('locale').value.split('_')[eval(-1 + document.getElementById('locale').value.split('_').length)].split('-').length)]; //document.getElementById('timezone').value=tzi.split(' ')[0]; document.getElementById(em + 'das').innerHTML=''; xokn=''; okn=''; } } function precval(iois) { //okn=iois.value; oko=iois; lastokn=okn; } function cval(eiois) { //if (document.URL.indexOf('i0=') == -1) { //if (eiois.which != 16) { alert('2:' + eiois.which); } //okn+=String.fromCharCode(eiois.which || eiois.keyCode); if ((eiois.which || eiois.keyCode) == 8) { okn=''; } else if ((eiois.which || eiois.keyCode) == 186 || (eiois.which || eiois.keyCode) == 900000016) { okn=okn.replace(':','') + ':'; //document.title=okn + ' ' + (eiois.which || eiois.keyCode); var cvi=okn.split(':'); if (cvi.length > 1) { var scs=0.0, factor=1.0; for (var ij=eval(-1 + cvi.length); ij>=0; ij--) { if (cvi[ij] == '') cvi[ij]='00'; scs+=eval(factor * eval(cvi[ij])); factor*=60.0; } //alert(scs + ' ' + okn); okn='' + scs; oko.value=okn; lastokn=okn.replace(':',''); //document.title=okn + ' ' + (eiois.which || eiois.keyCode) + ' ' + oko.value; //setTimeout(fixval,30); } } else if ((eiois.which || eiois.keyCode) == 191) { if (!eiois.shiftKey) { okn+=String.fromCharCode(47); //document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } if (eval('' + okn.length) > 1) { expandokn(); } } else if ((eiois.which || eiois.keyCode) == 189) { if (eiois.shiftKey) { okn+=String.fromCharCode(95); } else { okn+=String.fromCharCode(45); } if (eval('' + okn.length) > 1) { expandokn(); } //document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } else if (eiois.keyCode == 189 || (eiois.which || eiois.keyCode) >= 65 && (eiois.which || eiois.keyCode) <= 90) { if (eiois.shiftKey) { okn+=String.fromCharCode(eiois.which || eiois.keyCode); } else { okn+=String.fromCharCode(eval(32 + eval(eiois.which || eiois.keyCode))); } //document.title='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; if (eval('' + okn.length) > 1) { expandokn(); } } else if ((eiois.which || eiois.keyCode) < 46 || (eiois.which || eiois.keyCode) > 58) { okn=okn; } else if (1 == 3) { okn+=String.fromCharCode(eiois.which || eiois.keyCode); document.title+='=1:' + okn + '+' + eiois.which + ' ' + eiois.keyCode + ' ... '; } //} }
"; if (isset($_GET['locale']) && !isset($_GET['currency'])) { $defloc=urldecode($_GET['locale']); $foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))]; $foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))]; $fmt = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::DECIMAL); $formatter = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::CURRENCY); if (!empty($defloc)) { Locale::setDefault($defloc); premap(); $formatter = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::CURRENCY); } else { Locale::setDefault('en_AU'); $currency='AUD'; $formatter = new NumberFormatter(urldecode($_GET['locale']), 'AUD'); } if (isset($_GET['amount'])) { echo "

" . $formatter->formatCurrency(urldecode($_GET['amount']), $currency) . "
" . $fmt->format(urldecode($_GET['amount'])) . "



"; } else { echo "

" . $formatter->formatCurrency(76543.210, $currency) . "
" . $fmt->format(76543.210) . "



"; } echo "

Show Currency" . $for . "


RJM Programming - December, 2024


As per (white background textboxes optional) ...




" . $locsel . "



"; } else if (isset($_GET['locale']) && isset($_GET['currency'])) { $defloc=urldecode($_GET['locale']); $foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))]; $foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))]; if ($foundcc != '') { premap(); } $fmt = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::DECIMAL); $formatter = new NumberFormatter(urldecode($_GET['locale']), NumberFormatter::CURRENCY); if (isset($_GET['amount'])) { echo "

" . $formatter->formatCurrency(urldecode($_GET['amount']), urldecode($_GET['currency'])) . "
" . $fmt->format(urldecode($_GET['amount'])) . "


"; } else { echo "

" . $formatter->formatCurrency(76543.210, urldecode($_GET['currency'])) . "
" . $fmt->format(76543.210) . "


"; } echo "

Show Currency" . $for . "


RJM Programming - December, 2024


As per (white background textboxes optional) ...




" . $locsel . "



"; } else if (isset($_POST['locale']) && !isset($_POST['currency'])) { $defloc=urldecode($_POST['locale']); $foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))]; $foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))]; $fmt = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::DECIMAL); $formatter = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::CURRENCY); if (!empty($defloc)) { Locale::setDefault($defloc); premap(); $formatter = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::CURRENCY); } else { Locale::setDefault('en_AU'); $currency='AUD'; $formatter = new NumberFormatter(urldecode($_POST['locale']), 'AUD'); } if (isset($_POST['amount'])) { echo "

" . $formatter->formatCurrency(urldecode($_POST['amount']), $currency) . "
" . $fmt->format(urldecode($_POST['amount'])) . "



"; } else { echo "

" . $formatter->formatCurrency(76543.210, $currency) . "
" . $fmt->format(76543.210) . "



"; } echo "

Show Currency" . $for . "


RJM Programming - December, 2024


As per (white background textboxes optional) ...




" . $locsel . "



"; } else if (isset($_POST['locale']) && isset($_POST['currency'])) { $defloc=urldecode($_POST['locale']); $foundcc=explode('_', $defloc)[-1 + sizeof(explode('_', $defloc))]; $foundcc=explode('-', $foundcc)[-1 + sizeof(explode('_', $foundcc))]; if ($foundcc != '') { premap(); } $fmt = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::DECIMAL); $formatter = new NumberFormatter(urldecode($_POST['locale']), NumberFormatter::CURRENCY); if (isset($_POST['amount'])) { echo "

" . $formatter->formatCurrency(urldecode($_POST['amount']), urldecode($_POST['currency'])) . "
" . $fmt->format(urldecode($_POST['amount'])) . "


"; } else { echo "

" . $formatter->formatCurrency(76543.210, urldecode($_POST['currency'])) . "
" . $fmt->format(76543.210) . "


"; } echo "

Show Currency" . $for . "


RJM Programming - December, 2024


As per (white background textboxes optional) ...




" . $locsel . "



"; } else { echo "

Show Currency" . $for . "


RJM Programming - December, 2024


As per (white background textboxes optional) ...




" . $locsel . "



"; } echo ""; ?>
CountryCapital city
M
MacedoniaSkopje
MadagascarAntananarivo
MalawiLilongwe
MalaysiaKuala Lumpur
MaldivesMale
MaliBamako
MaltaValletta
Marshall IslandsMajuro
MauritaniaNouakchott
MauritiusPort Louis
MexicoMexico City
MicronesiaPalikir
MoldovaChisinau
MonacoMonaco
MongoliaUlaanbaatar
MontenegroPodgorica
MoroccoRabat
MozambiqueMaputo
Myanmar (Burma)Naypyidaw
N
NamibiaWindhoek
NauruYaren District
NepalKathmandu
NetherlandsAmsterdam
New ZealandWellington
NicaraguaManagua
NigerNiamey
NigeriaAbuja
North KoreaPyongyang
NorwayOslo
O
OmanMuscat
P
PakistanIslamabad
PalauNgerulmud
PalestineRamallah
PanamaPanama City
Papua New GuineaPort Moresby
ParaguayAsunción
PeruLima
PhilippinesManila
PolandWarsaw
PortugalLisbon
Q
QatarDoha
R
RomaniaBucharest
RussiaMoscow
RwandaKigali
S
Saint Kitts and NevisBasseterre
Saint LuciaCastries
Saint Vincent and the GrenadinesKingstown
SamoaApia
San MarinoSan Marino
Sao Tome and PrincipeSão Tomé
Saudi ArabiaRiyadh
SenegalDakar
SerbiaBelgrade
SeychellesVictoria
Sierra LeoneFreetown
SingaporeSingapore
SlovakiaBratislava
SloveniaLjubljana
Solomon IslandsHoniara
SomaliaMogadishu
South AfricaPretoria (administrative), Cape Town (legislative), Bloemfontein (judicial)
South KoreaSeoul
South OssetiaTskhinvali
South SudanJuba
SpainMadrid
Sri LankaSri Jayawardenepura Kotte
SudanKhartoum
SurinameParamaribo
SwazilandMbabane
SwedenStockholm
SwitzerlandBern
SyriaDamascus
T
TaiwanTaipei
TajikistanDushanbe
TanzaniaDodoma
ThailandBangkok
Timor-LesteDili
TogoLomé
TongaNukuʻalofa
Trinidad and TobagoPort of Spain
TunisiaTunis
TurkeyAnkara
TurkmenistanAshgabat
TuvaluFunafuti
U
UgandaKampala
UkraineKyiv
United Arab EmiratesAbu Dhabi
United KingdomLondon
United States of AmericaWashington, D.C.
UruguayMontevideo
UzbekistanTashkent
V
VanuatuPort Vila
Vatican City (Holy See)Vatican City
VenezuelaCaracas
VietnamHanoi
Y
YemenSana'a
Z
ZambiaLusaka
ZimbabweHarare
","",$curbits)); if (sizeof($huhbits) == 1) $huhbits=explode("(" . $ctryiss[0], str_replace("","",$curbits)); if (sizeof($huhbits) == 1) $huhbits=explode($ctryiss[0] . "/", str_replace("","",$curbits)); if (sizeof($huhbits) > 1) { $ids=explode(' id="', $huhbits[0]); if (sizeof($ids) > 1) { $thiscode=explode('"', $ids[-1 + sizeof($ids)])[0]; } $posthuhbits=explode("", $huhbits[1]); if (sizeof($posthuhbits) > 1) { $bposthuhbits=explode("", $bposthuhbits); $thiscur=str_replace('.', '_', str_replace(' ', '_', str_replace('"', '_', str_replace("'", "_", str_replace("'", "`", $preposthuhbits[0] . " (" . str_replace("\n","",str_replace("","",explode("<",$posthuhbits[2])[0])) . ")"))))); $retcap=str_replace("title='" . $ctryiss[0] . "", "title='" . str_replace("'", "`", $preposthuhbits[0] . " (" . str_replace("\n","",str_replace("","",explode("<",$posthuhbits[2])[0])) . ")") . "", $cincountry); } } } return $retcap; } function premap() { global $foundcc, $currency, $iso_country_codes, $curbits, $for; $lg='en'; $prevsr=[]; $cname=''; $curbits=str_replace('',' ',str_replace('',' ',str_replace('
',' ',$curbits))); for ($ijk=0; $ijk'; if (1 == 3) { $cname=$iso_country_codes[1 + $ijk]; $for=' for ' . $cname . ' ' . orflag(strtoupper($iso_country_codes[$ijk])) . ''; } else if (isset($_POST['locale'])) { if (locale_get_display_region(urldecode($_POST['locale']), 'en') == '') { $lg=explode('_', urldecode($_POST['locale']))[0]; $lg=explode('-', $lg)[0]; } $cname=locale_get_display_region(urldecode($_POST['locale']), $lg); $for=' of ' . locale_get_display_region(urldecode($_POST['locale']), $lg) . ' ' . orflag(strtoupper($iso_country_codes[$ijk])) . ''; } else if (isset($_GET['locale'])) { if (locale_get_display_region(urldecode($_GET['locale']), 'en') == '') { $lg=explode('_', urldecode($_GET['locale']))[0]; $lg=explode('-', $lg)[0]; } $cname=locale_get_display_region(urldecode($_GET['locale']), $lg); $for=' of ' . locale_get_display_region(urldecode($_GET['locale']), $lg) . ' ' . orflag(strtoupper($iso_country_codes[$ijk])) . ''; } if (strpos($cname, ' ') !== false) { $prevsr=explode('>  ' . explode(' (', explode(' ',$cname)[0] . ' ' . explode(' ',$cname)[1])[0], $curbits); } $vsr=explode('>  ' . explode(' ',explode(' (', $cname)[0])[0], $curbits); if (sizeof($prevsr) >= 2) { $currency=explode('>', explode('