Re: Miserable escape string problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Wells wrote:
....
Excerpt:
Since you can't escape '{', this syntax will only be recognised when
the $ is immediately following the {. (Use "{\$" to get a literal
"{$").

Does that help?

Not really, John.
===============================
$var1 = 1; $var2 = 2;
print("{\$var1: $var2}");
===============================

will output "{$var1: 2}". I need this output "{1: 2}".
What I need is an escape character for the {, but it looks like
PHP doesn't have any.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux