[SOLVED] Mulitdemensional Arrays
Posted: Tue Oct 05, 2004 3:31 pm
Havin some problems with the following code:
I'd like to get it where there's a select dropdown like so:
Please Choose
---
Furniture
Art
Pictures
etc...
I thought I had it, but the nested foreach loops were not was I was after.
A link would be much help as well
Code: Select all
$categories = array(
"Furniture" => array("Art", "Pictures", "Antiquities", "Item Managers", "Decoration", "Movable")
, "Family" => array("Toys", "Motherhood", "Jewels and Perfumes", "Pharmacy")
, "Tools/Equipment/Materials" => array("Tools", "Heavy Equipment", "Generators", "Pro Equipment", "Rentals", "Agricultural Tools")
, "Animals" => array("Accessories", "Bedding")
, "Real Estate" => array("Commerce", "Business", "Residential", "Industrial/Machine")
, "Hardware" => array("Electrical", "Plumbing", "Electrical", "Sanitation")
, "Education" => array("Books", "Computers", "Printers/Peripherals", "School/Office Supplies")
, "Data Processing" => array("Software", "Games", "Computer Accessories")
, "Electronics" => array("Audio", "Video", "Video Game Consoles", "Phones", "Cell Phone Accessories")
, "Leisures" => array("Sports Equipment", "Photography", "Music", "Musical Instruments", "Movies", "Collections", "Hobbies")
, "Community" => array("Sharing")
, "Automobiles" => array("Directories", "Accessories", "Cars", "Equipment")
, "Employment" => array("Job Fairs", "Seminars", "Frameworks")
);Please Choose
---
Furniture
Art
Pictures
etc...
I thought I had it, but the nested foreach loops were not was I was after.
A link would be much help as well