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
Navigation:
[Reply to this message]
|