I need next 5 saturday from the last month. eg. current date is 07-04-2018 so I need 5 saturday of the last month. output- 03-03-18, 10-03-18, 17-03-18, 24-03-18, 31-03-18. I can get it by using below but this is completely hardcoded. How can i apply here loop to get next five saturday of the last month?
$firstSat= date("dmy", strtotime("first saturday of last month"));
$secondSat= date("dmy", strtotime("second saturday of last month"));
$thirdSat= date("dmy", strtotime("third saturday of last month"));
$forthSat= date("dmy", strtotime("fourth saturday of last month"));
$fifthSat= date("dmy", strtotime("fifth saturday of last month"));