P粉0372155872023-08-25 09:15:26
You should use setlocale()
and strftime()
:
setlocale(LC_TIME, 'sr_CS'); $month_name = strftime('%B', mktime(0, 0, 0, $i));
P粉4457144132023-08-25 00:30:37
You should use setlocale()
:
setlocale(LC_TIME, 'fr_FR'); $month_name = date('F', mktime(0, 0, 0, $i));
In this example it will be set to French. In your case it should be one of the following:
sr_BA
- Serbian (Montenegro)sr_CS
- Serbian (Serbia) sr_ME
- Serbian (Serbia and Montenegro)