note 39585 modified in function.cal-days-in-month by vrana
| From: | vrana@php.net | Date: | Tue, 17 Aug 2004 14:53:02 +0000 |
| Subject: | note 39585 modified in function.cal-days-in-month by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79708@lists.php.net to get a copy of this message | ||
Id suggest the best way to get days in a month is to use
$inMonth = the month of the year of which you wish to know the number of days for
$inYear = the year!
<?php
date("j",mktime(0,0,0,$inMonth+1,0, $inYear))
?>
simple.
--was--
Id suggest the best way to get days in a month is to use
$inMonth = the month of the year of which you wish to know the number of days for
$inYear = the year!
date("j",mktime(0,0,0,$inMonth+1,0, $inYear))
simple.
http://php.net/manual/en/function.cal-days-in-month.php