How do you check whether a date in the US format of e.g. 2012-01-01 falls on a weekday or weekend in PHP?
See Question&Answers more detail:osHow do you check whether a date in the US format of e.g. 2012-01-01 falls on a weekday or weekend in PHP?
See Question&Answers more detail:os$weekday = date("w", strtotime("2012-01-01"));
This will be 0 for Sunday through 6, Saturday.