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
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
>
&
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
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');
>
--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
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
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
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
8 matches
Mail list logo