Does php have a function to automatically convert dates to their day value?
Examples:
Monday
1
Tuesday
2
Something like this:
echo func('wednesday'); // 3
$day_of_week = date('N', strtotime('Monday'));