I have an array of object
([date]=>2012-01-09, [count]=>5),
([date]=>2012-01-11, [count]=>7),
([date]=>2012-01-12, [count]=>5)
What is the best way to convert the array to array object or array
([date]=>2012-01-08, [count]=>0),
([date]=>2012-01-09, [count]=>5),
([date]=>2012-01-10, [count]=>0),
([date]=>2012-01-11, [count]=>7),
([date]=>2012-01-12, [count]=>5),
([date]=>2012-01-13, [count]=>0),
([date]=>2012-01-14, [count]=>0)
assume given the startdate 2012-01-08 and enddate 2012-01-14
(string) $currentDateConvert this into PHP code 🙂