How do you know if an informed day, of the current month, fell on the weekend? For example:
echo isWeekend(24) // True
echo isWeekend(26) // False
In the related topic below, I can know today using the date
method:
date('w')
But there is no function in date
method for something like what I want.
I want to get a list with the total days of the month with cal_days_in_month
and check day by day, if it is a weekend, you will receive differential treatment.
Related: #