PHP: Group timestamps in days, weeks, months, years
In my application I am using RRD, but in several specific scenarios I want to fetch and group data (by days, weeks, months, years based on timestamps). Here is an example to understand me better: We have array with two…