RE: [PHP] Multidimensional array construction

2001-12-07 Thread Tim Ward
L PROTECTED]] Sent: 04 December 2001 15:22 To: PHP List; 'Mike Eheler' Subject: RE: [PHP] Multidimensional array construction Good day, Thanks to all who replied. This isn't quite what I needed, though. I _have_ the array (or delim

RE: [PHP] Multidimensional array construction

2001-12-04 Thread Darren Gamble
= Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Mike Eheler [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 5:30 PM To: Martin Towell Cc: 'Darren Gamble'; P

Re: [PHP] Multidimensional array construction

2001-12-03 Thread Mike Eheler
$$var = $some_value1; >echo $myarray["foo"]["bar"]["red"]["apple"]; >but when I tried it, it didn't work :( >looks like eval() to the rescue... > >-Original Message- >From: Darren Gamble [mailto:[EMAIL PROTECTED]] >Sent: Tu

RE: [PHP] Multidimensional array construction

2001-12-03 Thread Jim
> >print $SOMEVAL_1; >print $SOMEVAL_2; >print $SOMEVAL_3; >print $SOMEVAL_4; >print $SOMEVAL_5; > >print ""; > >... will produce: > >a >b >c >d >[Array] > >Which is cool. Not quite what you wanted, but maybe you could run with it. >

RE: [PHP] Multidimensional array construction

2001-12-03 Thread Jim
... will produce: a b c d [Array] Which is cool. Not quite what you wanted, but maybe you could run with it. Jim > >-Original Message----- >From: Darren Gamble [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, December 04, 2001 10:37 AM >To: PHP List >Subject: [PHP] Multidimen

RE: [PHP] Multidimensional array construction

2001-12-03 Thread Martin Towell
foo"]["bar"]["red"]["apple"]; but when I tried it, it didn't work :( looks like eval() to the rescue... -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 10:37 AM To: PHP List Subject: [PHP] Multidimens

[PHP] Multidimensional array construction

2001-12-03 Thread Darren Gamble
Here's a question for the list: I have a two-dimensional array; essentially a list of arrays. Each element (an array) can have any number of elements. As a small example: ( ( "foo" , "bar" , "red" , "apple" ), ( "foo" , "bar" , "red" , "car"), ( "foo" , "green" ) ) I would like to trave