0

Basically, I'd want to calculate average for same days (e.g. monday, tuesday, etc) in selected period.
This is my current (working) code:
$data = array(
'2016-05-01' => 100,
'2016-05-02' => 150, // monday
'2016-05-03' => 5,
'2016-05-04' => 5,
'2016-05-05' => 25,
'2016...