I have an array format, for example:
Array ( [Australia] => Array ( [0] => [1990,0.01], [1] => [1991,0.02], [2] => [1992,0.02], [3] => [1993,0.02], [4] => [1994,0.02], [5] => [1995,0.02], [6] => [1996,0.02], [7] => [1997,0.02], [8] => [1998,0.02], [9] => [1999,0.02], [10] => [2000,0.02], [11] => [2001,0.02], [12] => [2002,0.02], [13] => [2003,0.02], [14] => [2004,0.02], [15] => [2005,0.02], [16] => [2006,0.02], [17] => [2007,0.02], [18] => [2008,0.02], [19] => [2009,empty], [20] => [2010,empty], [21] => [2011,empty], [22] => [2012,empty], [23] => [2013,empty], [24] => [2014,empty], [25] => [2015,empty] ) [Pakistan] => Array ( [0] => [1990,0.00], [1] => [1991,0.00], [2] => [1992,0.00], [3] => [1993,0.00], [4] => [1994,0.00], [5] => [1995,0.00], [6] => [1996,0.00], [7] => [1997,0.00], [8] => [1998,0.00], [9] => [1999,0.00], [10] => [2000,0.00], [11] => [2001,0.00], [12] => [2002,0.00], [13] => [2003,0.00], [14] => [2004,0.01], [15] => [2005,0.01], [16] => [2006,0.00], [17] => [2007,0.00], [18] => [2008,0.00], [19] => [2009,empty], [20] => [2010,empty], [21] => [2011,empty], [22] => [2012,empty], [23] => [2013,empty], [24] => [2014,empty], [25] => [2015,empty] ) )
and I want to replace 'empty' with 0 without changing the structure of the array and the position of the elements. I'm stuck on how to do this.