Posted by Nick Wedd on 01/26/07 14:41
In message <d7ehr25cnngp2j9gm4ub8cp21os0s8vi41@4ax.com>, Geoff Berrow
<blthecat@ckdog.co.uk> writes
>Message-ID: <op.tmppd00dqnv3q9@misant.kabel.utwente.nl> from Rik
>contained the following:
>
>>> So what is the correct way to write something like $a[$b[$c]] ? I have
>>> tried adding extra {} and '' here and there, so far without success.
>>
>>Curly braces should work. Tried & tested:
>><?php
>>$bar = 'bar';
>>$foo[$bar] = 'baz';
>>$foz['baz'] = 'success';
>>echo "{$foz[$foo[$bar]]}";
>>?>
>
>Or concatenation
> print "<a name='$ct[$k]'>".$continentname[$ct[$k]]."</a>\n";
Thanks to both of you.
I am impressed by how positive and helpful the responses in this
newsgroup are.
Nick
--
Nick Wedd nick@maproom.co.uk
Navigation:
[Reply to this message]
|