multidimensional array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • biru
    New Member
    • May 2007
    • 1

    #1

    multidimensional array

    hi there friends,

    can someone help me. i have this array below

    [code=text]
    (
    [KOPI] => Array
    (
    [HANG TUAH] => Array
    (
    [200.00] => Array
    (
    [PASARAYA] => 2.9000
    )


    [250.00] => Array
    (
    [PASARAYA] => 5.9500
    [PASARAYA BESAR] => 2.8900
    )

    )

    )


    )
    [/code]
    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..
    Last edited by pbmods; May 29 '07, 03:21 PM. Reason: Added code tags.
Working...