Jump to content

Need some help with the logic & methods...


iPixel

Recommended Posts

Ok so i got an excell spreadsheet that contains data like so ...

 

Part No.    Vendor      Color    Width    Height    Depth              <-- This is the header of the xls. spreadsheet

12345        ABC        RED      24"        40"          24"

23456        ABC        BLUE    11"        22"        11"

33461        ABC        Green    12"        55"        21"

 

 

etc....

 

Whats the best way to read through this spreadsheet, and then reshuffle the info to look like this ...

and place it back into a new spreadsheet

 

12345    ABC    COLOR    RED

12345    ABC    WIDTH    24"

12345    ABC    HEIGH      40"

12345    ABC    DEPTH      24"

 

23456    ABC    COLOR    RED

23456    ABC    WIDTH    11"

23456    ABC    HEIGH      22"

23456    ABC    DEPTH      11"

 

etc....

 

Should i somehow do a multidimentional array ..

12345 => (Vendor => ABC) (Color => RED) (WIDTH=>24") etc ...

i think more or less that what that would look like ..

 

or does anyone have a better method of doing this ...

 

Link to comment
https://forums.phpfreaks.com/topic/74613-need-some-help-with-the-logic-methods/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.