PHP End Date
July 01, 2020
<?php
$begin = date('Ymd');
echo $begin;This is how we get date today
But how to get end date of this month based on date today ?
<?php
$begin = date('Ymd');
$end = date('Ymt', strtotime($begin));
echo $end;Just by adding t we can get end date of this month