By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,377 Members | 3,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,377 IT Pros & Developers. It's quick & easy.

multidimensional array

P: 1
hi there friends,

can someone help me. i have this array below

Expand|Select|Wrap|Line Numbers
  1. (
  2.      [KOPI] => Array
  3.         (
  4.             [HANG TUAH] => Array
  5.                    (
  6.                         [200.00] => Array
  7.                               (
  8.                                        [PASARAYA] => 2.9000
  9.                                           )
  10.  
  11.  
  12.                         [250.00] => Array
  13.                               (
  14.                                        [PASARAYA] => 5.9500
  15.                                        [PASARAYA BESAR] => 2.8900
  16.                               )
  17.  
  18.                      )
  19.  
  20.            )
  21.  
  22.  
  23. )
  24.  
comes form $data[$v][$j][$b][$nama]=$harga;

the output will be display in a table. the table looks like:

variation brand weight PASARAYA BESAR PASARAYA (the header)

i use foreach construct to display information from $data[$v][$j][$b] which is for variation, brand and weight.

the problem is i do not know how to display the $harga as you can see, the [$nama] is refer to the table header.


please anybody help me...i spend lots of week to figure out this but still can't find the solution..
May 29 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.