<?php $sunday = new DateTimeImmutable('Sunday'); for ($dow = 0; $dow <= 6; $dow++) { $weekday = $sunday->add(new DateInterval('P'. $dow .'D')); printf('%s = %s (%s)' . PHP_EOL, $dow, $weekday->format('l'), $weekday->format('D')); }
You have javascript disabled. You will not be able to edit any code.