dyluck Posted May 27, 2010 Share Posted May 27, 2010 Hi There. Just curious if anyone knows how to dynamically build multidientional arrays. After the first column of categories, it is unknown how deep they go. If I already had the statement to grab the information, how would I go about begin storing this information into dynamic multidimentional arrays? Example. Dogs Brown Eyes [/td] Coat White Ears Tail Feet Cats Furry Tail Long Cute Ears Hairless Coat Funny Looking Face Eyes Cross Spaced Out Red Pupils Iris Dark Light Hampster Fat Red Brown Small Gerbil Wierd [td] Thanks for your help! Link to comment https://forums.phpfreaks.com/topic/203039-a-formidable-beast/ Share on other sites More sharing options...
xcandiottix Posted May 27, 2010 Share Posted May 27, 2010 Could you use PHP to create an XML document with Child Nodes etc.? I do believe there's good documentation on how to go back and forth between php and XML on the web. Link to comment https://forums.phpfreaks.com/topic/203039-a-formidable-beast/#findComment-1063958 Share on other sites More sharing options...
dyluck Posted May 27, 2010 Author Share Posted May 27, 2010 Well, I don't know about XML because these pieces of informaiton will be put together in 1 variable for each entry into a column in a database much like this format: Column: [Category] Dog > Brown > Eyes Cat > Funny Looking > Eyes > Spaced Out > Red > Iris > Light .... ... .. Would XML Output still be able to accomplish this? Link to comment https://forums.phpfreaks.com/topic/203039-a-formidable-beast/#findComment-1064292 Share on other sites More sharing options...
dyluck Posted May 27, 2010 Author Share Posted May 27, 2010 Ok So I know what to name what I am looking for. I need to dynamicly fill a variable variable array. I have the code developed to traverse it (found that beauty on the net) once it is all set just need to know how to dynamically fill a dynamic variable multidimentional array. As well as figure out the secrets to the flux capacitor Link to comment https://forums.phpfreaks.com/topic/203039-a-formidable-beast/#findComment-1064376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.