How to get next month dates in JSON object array?
问题 I have a php code as shown below in which on the 1st day of every month, I am copying 2nd JSON object array (next_month) content into 1st JSON object array (current_month) . In the 2nd JSON object array (next_month) , I want to have next month dates. That will also happen on the 1st day of every month. Currently I am storing nada . Let us suppose that today is 1st day of November . php code: $value = json_decode(file_get_contents('../hyt/dates.json')); if ((date('j') == 1)) { $month = 11;