Multidimensional array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fstrnu
Forum Newbie
Posts: 11
Joined: Fri Dec 19, 2003 9:11 am

Multidimensional array

Post by fstrnu »

This...

print"$Overall_Name[$place][$i]";

... displays this...

Array[1]

Why won't it show the value. I need to reference a specific value in a multidimensional array in this should work, right?

And, yes, I know the array is setup properly because I can traverse it via the foreach function.

Many thanks in advance!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

print $Overall_Name[$place][$i];

or

print "{$Overall_Name[$place][$i]}";
Post Reply