|
Posted by Geoff Berrow on 01/25/07 14:06
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";
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|