PHP Find end of the month/last day of month

<?php echo date("t-m-Y"); ?>

The ‘t’ option of date returns the number of days in the month.

This entry was posted in computing, php, web development. Bookmark the permalink.