Jump to content

A formidable beast


dyluck

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.