Is it possible to get the number of saturdays and sundays for a given month
/ year?
This seems to work...
0 && $week_day < 6 ) {
$day += 6 - $week_day; // $day = first saturday
}
$ts = mktime(0, 0, 0, $month, $day, $year);
$tmp_month = date("n", $ts); // 1 - 12
while ( $month == $tmp_mo
> Hi,
>
> Is it possible to get the number of saturdays and sundays for a given
> month
> / year?
>
> Thanks for your help.
Hi Shaun,
Not sure if there's a graceful PHP solution (there probably is, but can't
think of one, myself, right at this moment) but it sounds like what you
might need is a
2 matches
Mail list logo