In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to