<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) Sun Oct 20 08:45:08 2024 American Sun Oct 20 08:45:08 2024 Dutch Sun Oct 20 08:45:08 2024 Hebrew Sun Oct 20 08:45:08 2024 Hebrew (UTF-8) Sun Oct 20 08:45:08 2024 Hungarian Sun Oct 20 08:45:08 2024 Japanese Sun Oct 20 08:45:08 2024 Norwegian Sun Oct 20 08:45:08 2024 Turkish Sun Oct 20 08:45:08 2024