PHP Classes

Problem with array php

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Problem with array php  
Subject:Problem with array php
Summary:Problem iterating php array.
Messages:2
Author:Raul Baez
Date:2013-01-16 20:30:03
Update:2013-04-04 04:45:41
 

  1. Problem with array php   Reply   Report abuse  
Picture of Raul Baez 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.