You are here: Re: array value as array index « PHP Programming Language « IT news, forums, messages
Re: array value as array index

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация