Now I want to do here is:
based on how many entries are in for example
June which is 4 in this case I want to get the sum of values in daily_values array like this:
first loop iteration will sum values in daily_values array from 0 to 3, the second loop iteration will sum values from 4 to 34 and third loop iteration will sum values from 35 to 63 and so on and so on.
and I want from all this is to have an array which will be like this
["sum of 0,3", "sum of 4,34", "sum of 35,63"]
Just a note here, this array is much bigger, but I cut it short just for question purposes.
try the Following code :
I created a same test and it works good for me. Hope it helps you in someway.