How to find first day of the next month and remaining days till this date with PHP

前端 未结 15 785
难免孤独
难免孤独 2020-12-08 14:36

How can I find first day of the next month and the remaining days till this day from the present day?

Thank you

15条回答
  •  抹茶落季
    2020-12-08 15:12

    You can use the php date method to find the current month and date, and then you would need to have a short list to find how many days in that month and subtract (leap year would require extra work).

提交回复
热议问题