Miserable escape string problem
| From: | intra_test at roibm dot de | Date: | Thu, 05 Oct 2006 15:19:32 +0000 |
| Subject: | Miserable escape string problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242674@lists.php.net to get a copy of this message | ||
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.