Multi dimentional array.

From: Date: Wed, 24 Oct 2001 02:48:46 +0000
Subject: Multi dimentional array.
Groups: php.install 
Request: Send a blank email to php-install+get-4727@lists.php.net to get a copy of this message
Hello everyone, I need Need Help.. <?php /* foreach example 4: multi-dimensional arrays */ $a[0][0] = "a"; $a[0][1] = "b"; $a[1][0] = "y"; $a[1][1] = "z"; foreach($a as $v1) { foreach ($v1 as $v2) { print "$v2\n"; } } ?> This is an example from the PHP document and when I try this example this does not work. Can somedoby give me some reason why? and if you know how to imlement multi dimentional array please tell me also. Thanks Archer

« previous php.install (#4727) next »