note 120219 deleted from function.cal-days-in-month by sobak
| From: | sobak@php.net | Date: | Thu, 24 Nov 2016 11:25:34 +0000 |
| Subject: | note 120219 deleted from function.cal-days-in-month by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207548@lists.php.net to get a copy of this message | ||
Note Submitter: michal.lohnisky
----
If you just want the days in the current month, use date:
<?php
$days = date("t");
?>
or DateTime:
<?php
$days = (new DateTime)->format("t");
?>