Re: How to display Array
am 30.03.2008 21:42:49 von SOLVEROn 28 Mar, 05:34, adwin
> use echo ''; print_r($array) ; echo '
';
>
> or use
> foreach($array as $key => $subarray)
> {
> echo $subarray['HOTEL_ROOMS'];
> forach($subarray['ROOM'] as $key => $anotherarray)
> {
> write here what you need !
> }
>
> }
This will not work...
There is array like that:
[ROOM][0][...]
[ROOM][1][...]
[ROOM][2][...]
[ROOM][3][...]
How to dispaly something like that if I dont know how many rooms will
be?
At the moment I using function 'for' inside the function 'foreach'.
But this will not work when is only one room:
[ROOM][...]
Mariusz