Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Parsing All Multi-Dimensional Array Combinations


Message #1 by "John Buckley" <john@b...> on Thu, 22 Mar 2001 19:37:58
I am trying to combine all combinations of a multidimensional array that 
is being created by db.

For instance, one sequence may be Color => "Red", "Green", "Blue'... The 
Next sequence may be Size => "Small", "Medium", "Large", "X-Large"... 
There may be more or less sequences based on the db results...

In this case, there is obviously 12 combinations:
Red->Small
Red->Medium
Red->Large
Red->X-Large
Green->Small
.
.
.

How can I parse this multi-dimensional array in order to dispay these 
combinations (keeping in mind that this needs to be very dynamic)?

Thanks,
John B


  Return to Index