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
I know its been a long time, but what about:
$timestamp = strtotime('next Sunday'); $days = array(); for ($i = 0; $i < 7; $i++) { $days[] = strftime('%A', $timestamp); $timestamp = strtotime('+1 day', $timestamp); }
from how to create array of a week days name in php