Variable Syntax Help Needed PLEASE!!

From: Date: Sun, 12 Nov 2000 23:14:07 +0000
Subject: Variable Syntax Help Needed PLEASE!!
Groups: php.general 
Request: Send a blank email to php-general+get-24887@lists.php.net to get a copy of this message
Hello everybody, I have a hopefully simple question. Assume I have an array like so: $i1[0] = "blah"; $i1[1] = "barf"; $i2[0] = "hello"; $i2[1] = "there"; $i3[0] = "good"; $i3[1] = "afternoon"; ..... $x is the number of arrays above, or in this case 3. I also have a for loop like: for ($a = "1"; $a <= $x; $a++) { .... } How would I refer to $i1[0] and $i1[1] and $i2[0] and $i2[1] and $i3[0] and $i3[1] in my for loop? Thanks in advance :-D Jeff

« previous php.general (#24887) next »