FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Array variable in echo statement
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Array variable in echo statement [message #169785 is a reply to message #169784] Sun, 26 September 2010 19:10 Go to previous messageGo to previous message
Marious Barrier is currently offline  Marious Barrier
Messages: 25
Registered: September 2010
Karma:
Junior Member
On 09/26/2010 02:59 PM, MikeB wrote:
> Right. Thanks. So that mean that if I want the result of a function in
> an output statement I should put it in a variable prior to the output
> statement?
>
> Like this:
>
> $ck=key($_COOKIE);
> echo "The key is $ck";
>
> rather than:
>
> echo "The key is key($_COOKIE)";
>
> Which I know won't work and is why I thought the curly braces was meant
> to resolve, but I guess I misread/misunderstood that part as well.

All is correct.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Can anyone recommend a good debugger & IDE for PHP?
Next Topic: Newbie: Displaying a 'message box'
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 01:45:29 GMT 2024

Total time taken to generate the page: 0.04474 seconds