Re: [PHP] Saturdays and Sundays

2005-09-01 Thread Philip Hallstrom
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

RE: [PHP] Saturdays and Sundays

2005-09-01 Thread Murray @ PlanetThoughtful
> 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