Miserable escape string problem

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

 



Using this string:
"{$var1: $var2}"
....of course it doesn't work as some might expect.

But why in the name of [whatever, too many to list] doesn't this one below work?
"\{$var1: $var2}"

If \ is an escape character why does it also appear in the string output?
Why does the above \ escape {$var1 and not only the {?

Miserable.

--
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