I have 2 variables called
$joined_date = 2016-09-18
and
$monthly_bill = 1200
Now I want to show all months from joined date to today date with monthly bill. For example, the loop should show the bellow result :
2016-09-18 480 // Joined 18th and month end 30th = 12 days * (1200 / 30)
2016-10-01 1200
2016-11-01 1200
2016-12-01 1200
2017-01-01 1200
How can show this using php loop ?