how to get current month’s first and last date using php ?

you can use below script to get first and last date of current month –

<?php
$first_day_this_month = date(‘Y-m-01’);
$last_day_this_month = date(‘Y-m-t’);
echo “First Date Of current Month – “.$first_day_this_month.””;
echo “First Date Of current Month – “.$last_day_this_month.””;
?>