<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) Sat Nov 16 04:59:23 2024 American Sat Nov 16 04:59:23 2024 Dutch Sat Nov 16 04:59:23 2024 Hebrew Sat Nov 16 04:59:23 2024 Hebrew (UTF-8) Sat Nov 16 04:59:23 2024 Hungarian Sat Nov 16 04:59:23 2024 Japanese Sat Nov 16 04:59:23 2024 Norwegian Sat Nov 16 04:59:23 2024 Turkish Sat Nov 16 04:59:23 2024