ok, so i've got an array like this
and what I am trying to do is strip down the array and rewrite it to add an entry of 0 for the second url and date 2011-08-25 since there is no value. All of the URL dimensions of the array need to have the same amount of data for what I'm trying to accomplish. So I need to be able to go through the array and make sure that each URL reference has the same dates available as the rest of the URLs and if not, add one with a 0 as the value.
I've been trying for a couple of hours and think I'm at the point where I am going nuts.
PHP Code:
Array
(
[someURL] => Array
(
[0] => Array
(
[2011-08-24] => 10
)
[1] => Array
(
[2011-08-25] => 20
)
)
[secondURL] => Array
(
[0] => Array
(
[2011-08-24] => 10
)
)
I've been trying for a couple of hours and think I'm at the point where I am going nuts.
Comment