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

Home » Imported messages » comp.lang.php » variable replacement in string
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: variable replacement in string [message #178013 is a reply to message #178007] Thu, 10 May 2012 16:21 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 10.05.2012 15:11, schrieb The Natural Philosopher:

> if you want to program in tcl., i suggest you use tcl.
>
> your example
> $t = ' - solved - ';
> $msg = 'The problem is $t';
>
> should be
> $t = ' - solved - ';
> $msg = 'The problem is'.$t;
> echo($msg);

You cannot miss something you do not know it exists.

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Windows binaries 64bit for PHP
Next Topic: Re: Windows binaries 64bit for PHP
Goto Forum:
  

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

Current Time: Thu Nov 28 11:27:00 GMT 2024

Total time taken to generate the page: 0.09510 seconds