How can i get the last day of a year passed as parameter using strtotime?
I try this but the results are not the correct last days :
$yearEnd2015 = date('Y-m-d', strtotime('last day of december this year -3'));
$yearEnd2016 = date('Y-m-d', strtotime('last day of december this year -2'));
$yearEnd2017 = date('Y-m-d', strtotime('last day of december this year -1'));
$yearEnd = date('Y-m-d', strtotime('last day of december this year'));
echo " <br>2015 : ".$yearEnd2015;
echo " <br>2016 : ".$yearEnd2016;
echo " <br>2017 : ".$yearEnd2017;
echo " <br>2018 : ".$yearEnd;