gambrjl
April 23rd, 2008, 12:55 PM
Ok, going crosseyed here so I figured you smart folks could point me in the right direction. I have an array with 4 keys where the value associated with each key is an array (all of those arrays are the same length)
The array looks similar to this with a var_dump()
array(2) {
["Key 1"] => array (3) {
[0] => string "value1"
[1] => string "value2"
[3] => string "value3"
}
{
["Key 2"] => array (3) {
[0] => string "value4"
[1] => string "value5"
[3] => string "value6"
}
}
I'd like the table to look like this
Key 1 Key 2
value1 value4
value2 value5
value3 value6
does that make sense? I can't figure out how to loop through and get table to come out correct
The array looks similar to this with a var_dump()
array(2) {
["Key 1"] => array (3) {
[0] => string "value1"
[1] => string "value2"
[3] => string "value3"
}
{
["Key 2"] => array (3) {
[0] => string "value4"
[1] => string "value5"
[3] => string "value6"
}
}
I'd like the table to look like this
Key 1 Key 2
value1 value4
value2 value5
value3 value6
does that make sense? I can't figure out how to loop through and get table to come out correct