02-20-2013, 06:26 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Feb 2013
Posts: 7
Thanks: 0
|
Problem with array php
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.
___________________________________________
Wholesale Handbags
|
|
|
|