...

View Full Version : printing from a multidimentional array



kyle2k
09-05-2007, 08:35 PM
Hi,

I have a multidimentional array like below.

How do I just print out the second array from the three in the main array?



array(3) {
[0]=>
array(8) {
[0]=>
string(5) "1bart"
[1]=>
string(20) "kyle19@example.com"
[2]=>
string(9) "127.0.0.1"
[3]=>
string(39) "Wednesday 5th September 2007 @ 18:15-15"
[4]=>
string(10) "a557e22c2d"
[5]=>
string(7) "#67C8FF"
[6]=>
string(7) "#67C8FF"
[7]=>
string(8) "#DFFFA5
"
}
[1]=>
array(8) {
[0]=>
string(4) "2000"
[1]=>
string(21) "kyle8@example.com"
[2]=>
string(9) "127.0.0.1"
[3]=>
string(39) "Wednesday 5th September 2007 @ 18:15-29"
[4]=>
string(10) "4de1e777b9"
[5]=>
string(7) "#FFA54F"
[6]=>
string(7) "#67C8FF"
[7]=>
string(8) "#DFFFA5
"
}
[2]=>
array(8) {
[0]=>
string(5) "habbo"
[1]=>
string(22) "kyle8@example.com"
[2]=>
string(9) "127.0.0.1"
[3]=>
string(39) "Wednesday 5th September 2007 @ 18:15-53"
[4]=>
string(10) "603688e8ca"
[5]=>
string(7) "#DFFFA5"
[6]=>
string(7) "#67C8FF"
[7]=>
string(8) "#FFA54F
"
}
}

Inigoesdr
09-05-2007, 09:10 PM
print_r($array[1]);

kyle2k
09-05-2007, 09:16 PM
Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum