<? $firstDay = strtotime('2003-05-01'); $lastDay = date('t',$firstDay); ?>
Justin
On Friday, August 15, 2003, at 06:40 PM, Ralph Guzman wrote:
I just noticed, this will give me total days for current month. But let's say I want to look up the total days for another month?
-----Original Message----- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re: [PHP] LAST DAY OF MONTH
<? print date("t") ?>
rgds.
Quoting Ralph Guzman <[EMAIL PROTECTED]>:
How can I get the last day for the current month?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--------------------------------------------------- Sign Up for free Email at http://ureg.home.net.my/ ---------------------------------------------------
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- [This E-mail scanned for viruses]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php