| |
1. Problem with array php |
|
Reply |
|
|
 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.
|
There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.
Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.