I have the following variables
$fehchaI ='2016-01-01';
$fehchaF ='2017-01-31';
What I want to do is increase the dates month by month and the result is
2016-01-01
2016-01-31
2016-02-01
2016-02-28
2016-03-01
2016-03-31
or
2016-01-01
2016-02-01
2016-03-01
2016-04-01
and so on until the last one is '2017-01-31'
or some function like MySQL:
SELECT DATE_ADD("2016-01-01", INTERVAL 1 MONTH);
but for php
Someone who can help me do it in PHP