Preferred locale for Chinese : setlocale « Utility Function « PHP

Preferred locale for Chinese

    if($loc_zh = setlocale(LC_ALL, 'zh_ZH.big5', 'zh_ZH', 'chn', 'chinese')) { 
        echo "<p>Preferred locale for Chinese on this system is \"$loc_zh\".<br />\n"; 
        echo strftime('%A %d %B %Y', mktime()) . "</p>\n"; 
    } else { 
        $lc_en = setlocale(LC_TIME, 'en_US', 'english'); 
        echo "<p>Reverting locale to $lc_en.</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 German
9.Preferred locale for Russian
10.To report local time for any Germans