Preferred locale for Russian : setlocale « Utility Function « PHP






Preferred locale for Russian

 
<?php 
    if($loc_ru = setlocale(LC_ALL, 'ru_RU.utf8', 'rus_RUS.1251', 'rus', 'russian')) { 
        echo "<p>Preferred locale for Russian on this system is \"$loc_ru\".<br />\n"; 
        echo  strftime('%A %d %B %Y', mktime()) . ".</p>\n"; 
    }else 
        echo "<p>Couldn't set a Russian locale.</p>\n"; 
?>
  
  








Related examples in the same category

1.Setting a default locale
2.Setting a default locale based on system environment
3.Setlocale() Options
4.Generating Localized GMT/UTC Time and Date Strings
5.Displaying Times and Dates in Other Languages
6.setlocale(LC_MONETARY, 'en_DK');
7.setlocale(LC_MONETARY, 'en_US');
8.Preferred locale for Chinese
9.Preferred locale for German
10.To report local time for any Germans