how to.. arrays? :D

From: Date: Wed, 08 May 2002 21:11:51 +0000
Subject: how to.. arrays? :D
Groups: php.general 
Request: Send a blank email to php-general+get-96674@lists.php.net to get a copy of this message
Ok, the last time(about 5 min ago) you told me to use arrays, to be honest I've never worked with arrays before, and I tried a little now, and I can't figure out how to make multi level arrays with a loop, I tried with $team = array($g => array($r => $tnme)); $g is group number 1 to 4 $r is rank number 1 to 4 $tnme is teamname, letters and I can't get a clear picture of how to get the info, but what I've seen so far I have the thought that I should print "{$team[1][2]}"; and so on, which should give me rank 2 from group 1.. or am I wrong? seems like something is wrong, since it wont work :D I looked at php.net but that doesn't make me any smarter .. hehe :P Håkan

« previous php.general (#96674) next »