RE: [PHP] associative array syntax question - got it!

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Yes, that does for sure Maxim Maletsky www.PHPBeginner.com -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED]] Sent: giovedi 4 ottobre 2001 4.02 To: 'Job Miller'; 'Maxim Maletsky (PHPBeginner.com)'; [EMAIL PROTECTED] Subject: RE: [PHP] associative a

RE: [PHP] associative array syntax question - got it!

2001-10-03 Thread Matthew Loff
gt; > > -Original Message- > From: Maxim Maletsky (PHPBeginner.com) > [mailto:[EMAIL PROTECTED]] > Sent: giovedi 4 ottobre 2001 2.02 > To: 'Job Miller' > Subject: RE: [PHP] associative array syntax question > > > > I tried on winXP/PHP4.0.6/Apache > &

RE: [PHP] associative array syntax question - got it!

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
ED]] Sent: giovedi 4 ottobre 2001 2.44 To: Maxim Maletsky (PHPBeginner.com); [EMAIL PROTECTED] Subject: Re: [PHP] associative array syntax question - got it! Maxim, I figured it out. Thanks for your help PHP can't interpolate within string when nested associative array is used. the nested aa m

Re: [PHP] associative array syntax question - got it!

2001-10-03 Thread Job Miller
sky (PHPBeginner.com) > [mailto:[EMAIL PROTECTED]] > Sent: giovedi 4 ottobre 2001 2.02 > To: 'Job Miller' > Subject: RE: [PHP] associative array syntax question > > > > I tried on winXP/PHP4.0.6/Apache > >$a = Array('print me'); >

RE: [PHP] associative array syntax question

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
--Original Message- From: Job Miller [mailto:[EMAIL PROTECTED]] Sent: giovedi 4 ottobre 2001 2.21 To: [EMAIL PROTECTED] Subject: RE: [PHP] associative array syntax question here is sample output from my script: win98/Apache 1.3.19/php4.0.5 variable being displayed = value $row[TICKER] = NTAP $t

Re: [PHP] associative array syntax question

2001-10-03 Thread Philip Olson
Hi Job. This works for me (and *should* always work) : $a = array('foo' => 'bar'); $b = array('b' => 'foo'); print $a[$b['b']]; // prints bar How _exactly_ are you calling it? (provide a short standalone ex) Does the above example work for you? What version of php? regards, Philip Ol

RE: [PHP] associative array syntax question

2001-10-03 Thread Job Miller
here is sample output from my script: win98/Apache 1.3.19/php4.0.5 variable being displayed = value $row[TICKER] = NTAP $test = NTAP $quotes[$test] = 8.30 $quotes[{$row[TICKER]}] = will not parse $quotes[$row[TICKER]] = will not parse any ideas? --- "Maxim Maletsky (PHPBeginner.com)" <[EMAIL

RE: [PHP] associative array syntax question

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Strange, I always though it should be working. Have you tried $a[{$b['b']}] ? What version of PHP are you running? Maxim Maletsky www.PHPBeginner.com -Original Message- From: Job Miller [mailto:[EMAIL PROTECTED]] Sent: giovedi 4 ottobre 2001 1.41 To: [EMAIL PROTECTED] Subject: [PHP