Actually I’m using this:
setlocale(LC_ALL, 'it_IT');
$monthNames = array();
for ($i = 1; $i <= 12; $i++)
{
$monthNames[] = strftime('%B', mktime(0, 0, 0, $i));
}
Is there a simpler and nicer way to do this? Furthermore this doesn’t work well with the names of the days. Thank you.
This is one way to do it, I suppose. I didn’t see any built-in functions for grabbing localized days of the week or months.