vrana Tue Dec 6 10:20:43 2005 EDT
Modified files:
/phpdoc/en/language types.xml
Log:
\{$var} (bug #35527)
http://cvs.php.net/diff.php/phpdoc/en/language/types.xml?r1=1.155&r2=1.156&ty=u
Index: phpdoc/en/language/types.xml
diff -u phpdoc/en/language/types.xml:1.155 phpdoc/en/language/types.xml:1.156
--- phpdoc/en/language/types.xml:1.155 Tue Sep 20 10:15:14 2005
+++ phpdoc/en/language/types.xml Tue Dec 6 10:20:41 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.155 $ -->
+<!-- $Revision: 1.156 $ -->
<chapter id="language.types">
<title>Types</title>
@@ -777,6 +777,8 @@
<para>
Again, if you try to escape any other character, the
backslash will be printed too!
+ Before PHP 5.1.1, backslash in <literal>\{$var}</literal> hasn't been
+ printed.
</para>
<para>
But the most important feature of double-quoted strings
@@ -1012,7 +1014,7 @@
the same way as you would outside the string, and then include
it in { and }. Since you can't escape '{', this syntax will
only be recognised when the $ is immediately following the {.
- (Use "{\$" or "\{$" to get a literal "{$").
+ (Use "{\$" to get a literal "{$").
Some examples to make it clear:
</simpara>
<informalexample>