[Solved] Display which day it is? sunday or monday “php coding”? [closed]


Easy one:

$today = date('l'); // returns Sunday 

When you want it to do like your image, you should get your date from the dropdown. Then do the following:

$date="2017-7-27 10:51:10"; // example date 

var_dump(date('l', strtotime($date))); // returns Sunday

Goodluck!

2

solved Display which day it is? sunday or monday “php coding”? [closed]