Re: Help converting ASP->PHP
| From: | MrBaseball34 | Date: | Tue, 23 Oct 2001 15:16:23 +0000 |
| Subject: | Re: Help converting ASP->PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71956@lists.php.net to get a copy of this message | ||
In article <20011019221136.46546.qmail@pb1.pair.com>, curt@gilm.net says...
> <?
>
> function begin_month($timestamp)
> {
> $a = getdate($timestamp);
> return mktime(0, 0, 0, $a["mon"], 1, $a["year"]);
> }
>
> function end_month($timestamp)
> {
> $a = getdate($timestamp);
> return mktime(0, 0, 0, $a["mon"] + 1, 0, $a["year"]);
> }
>
> function weekday($timestamp)
> {
> $a = getdate($timestamp);
> return $a["wday"];
> }
>
> > PHP Newbie, so please don't flame me <bg>!
> >
> > I am converting an organizer example from an ASP book to PHP
> > and need some help.
> >
> > Need some help with the following code :
> >
> > /*
> > intMonth and intYear are variables passed into a function
> > datCurrent, intCurrentMonthDays and intWorkDays are local
This didn't totaly help. This line I can't figure out:
intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]];
Basically it gets the number of days in the current month, How to do in
PHP?