Re: [PHP] arrays and same index

2002-05-30 Thread Ed Gorski
Well what exactly are you trying to do? You can't name an index of an array the same thing and expect different values ed At 03:36 PM 5/30/2002 +0200, Victor Spång Arthursson wrote: >Hi! > >I want to create an array that looks like follows: > >$array["untitled_1.jpg"][] = 0 >$array["untitl

Re: [PHP] arrays and same index

2002-05-30 Thread Stuart Dallas
Victor Spång Arthursson <[EMAIL PROTECTED]> wrote: > I want to create an array that looks like follows: > > $array["untitled_1.jpg"][] = 0 > $array["untitled_1.jpg"][] = 3 > $array["untitled_1.jpg"][] = 4 > $array["untitled_2.jpg"][] = 0 > $array["untitled_3.jpg"][] = 1 > > What I'm thinking about

RE: [PHP] arrays and same index

2002-05-30 Thread Cal Evans
ot;][4] // = 1; or: $x = $array["untitled_1.jpg"]; echo $x[0]; echo $x[1]; echo $x[2]; echo $x[3]; echo $x[4]; HTH, =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message----- From: Victor Spang Arthursson [mailto:[EMAIL PROTECTED]] Sen

[PHP] arrays and same index

2002-05-30 Thread Victor Spång Arthursson
Hi! I want to create an array that looks like follows: $array["untitled_1.jpg"][] = 0 $array["untitled_1.jpg"][] = 3 $array["untitled_1.jpg"][] = 4 $array["untitled_2.jpg"][] = 0 $array["untitled_3.jpg"][] = 1 What I'm thinking about is accessing all "untitled_1.jpg" values by doing the follow