How can I get the day of a specific date with PHP

Viewed 208678

I want to get the day (Sunday, Monday,...) of October 22. How can I do that?

5 Answers
$date = strtotime('2016-2-3');
$date = date('l', $date);
var_dump($date)

(i added format 'l' so it will return full name of day)

Related