I need to display to user a list of localized day names (like \'Monday\', \'Tuesday\', ...) in a form. I know ho to get day name of any date. But is there a particular and f
The "usual" way is to start with a given last day and count up a day on each iteration.
last day
for ($i = 0; $i < 7; $i++) { $weekDayNames[] = strftime("%a", strtotime("last sunday +$i day")); }