<pre><?php
$locales = array(
'Arabic (Egypt)' => 'ar_EG.UTF-8', 'American ' => 'en_US',
'Dutch ' => 'nl_NL', 'Hebrew ' => 'iw_IL',
'Hebrew (UTF-8)' => 'iw_IL.UTF-8', 'Hungarian' => 'hu_HU.UTF-8',
'Japanese ' => 'ja_JP.UTF-8', 'Norwegian' => 'no_NO.UTF-8',
'Turkish ' => 'tr_TR.UTF-8'
);
foreach ($locales as $country => $locale) {
setlocale(LC_TIME, $locale);
echo '<b>', $country, "</b>\t", strftime('%c'),
"\n";
}
?></pre>
Output:
Arabic (Egypt) Thu Dec 26 14:29:19 2024 American Thu Dec 26 14:29:19 2024 Dutch Thu Dec 26 14:29:19 2024 Hebrew Thu Dec 26 14:29:19 2024 Hebrew (UTF-8) Thu Dec 26 14:29:19 2024 Hungarian Thu Dec 26 14:29:19 2024 Japanese Thu Dec 26 14:29:19 2024 Norwegian Thu Dec 26 14:29:19 2024 Turkish Thu Dec 26 14:29:19 2024