Reply to Re: array bugs?

Your name:

Reply:


Posted by Rik on 08/06/06 13:35

Miguel Cruz wrote:
> "7h@ch" <essetm@gmail.com> wrote:
>> echo "your goal keeper is: $myclub->roster[gk]<br>");
>>
>> As is, the 2nd line output is: "your goal keeper is: Array[gk]"
>
> echo "your goal keeper is: {$myclub->roster['gk']}<br>");
>
> Note the curly braces and quotes.

Yup, see Complex (curly) syntax:
http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex

Grtz,
--
Rik Wasmus

[Back to original 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

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