I'm trying to get values from a multidimensional array inside a multidimensional array. Here is the multidimensional array...
Array
(
[0] => Array
(
[CalID] => 121111
[Rink] => North
[TimeChunks] => Array
(
[int] => Array
(
[0] => 6
[1] => 4
[2] => 3
[3] => 2
[4] => 1
)
)
)
[1] => Array
(
[CalID] => 121111
[Rink] => South
[TimeChunks] => Array
(
[int] => Array
(
[0] => 4
[1] => 2
)
)
)
)
I want to get only the valid time chunks from [TimeChunks][int] ie: 1,2,3,4,6,8 but I can't seem to drill down to the second multidimensional array. Here is what I've been trying with no dice:
$tmp = array ();
foreach ($a as $row)
if (!in_array($row,$tmp)) array_push($tmp,$row);
print_r ($tmp);
Any suggestions?