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