I have the following code to save save the data as an array for the next year, $info is read from sql:
$saved = []
for ($x = 0; $x <= 365; $x++) {
$d=strtotime("+$x days");
$cd = date("Y-m-d", $d);
foreach($info as $i){
if($i['date'] == $cd){
$saved[$cd] = $i;
}
}
}
it works, but when I have many data with the same date it overrides it, how can I differentiate it without ruining the structure of