RE: [PHP] How many Mondays in a month?
| From: | Greg Wiley | Date: | Mon, 29 Sep 2003 18:30:26 +0000 |
| Subject: | RE: [PHP] How many Mondays in a month? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164282@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Burhan Khalid [mailto:phplist@meidomus.com]
>
> Greg Wiley wrote:
> > Funny you should ask this because I've been meaning to
> share some code
> > that I wrote a few months ago that does exactly this for
> any day of the week.
> >
> > Please feel free to use this and make changes. I'd appreciate
any
> > changes/bug fixes being sent back to me though.
> >
> [ snip ]
> > function num_days ($day, $month, $year) {
> [ snip ]
>
> One tip that I would add is that instead of using individual
> arguments, you might want to consider using an array as an
> argument. This prevents people from inserting the arguments
> in the wrong order, which would not yield the correct results.
>
Thanks, that's a good idea; though I would have to change my form
code to match:-(
When I make this change, where would be a good place to submit it?
Cheers, Greg.