Raul Baez - 2013-01-16 22:26:33
Hey guys im having an issue trying to iterate into an array. This is the array:
stdClass Object ( [new_occ] => Array ( [0] => Array ( [adults] => 2 [children] => Array ( [0] => 0 [1] => 0 [2] => 0 ) ) [1] => Array ( [adults] => 1 ) [2] => Array ( [adults] => 2 [children] => Array ( [0] => 0 [1] => 0 [2] => 0 ) ) ) )
The principal array nodes are rooms, i want to get them so i can print something like this.
(e.g)
Rooms Adults Children
1 1 1
2 2 2
Thanks in advance.