I have this part of the function, which gives me name of the months in English. How can I translate them to my local language (Serbian)?
$month_name = date(\
Here is an example with IntlDateFormatter
$format = new IntlDateFormatter('sr_CS', IntlDateFormatter::NONE, IntlDateFormatter::NONE, NULL, NULL, "MMM"); $monthName = datefmt_format($format, mktime(0, 0, 0, $i));