From 98bb1ae93eb484d9882e09f0b4e02eb64c46e50e Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Mon, 7 Sep 2009 06:46:10 +0000 Subject: [PATCH] Better fix for http://news.php.net/php.webmaster/3784 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288123 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/string.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/types/string.xml b/language/types/string.xml index b377d2ee52..3652a5c05c 100644 --- a/language/types/string.xml +++ b/language/types/string.xml @@ -586,7 +586,7 @@ echo "This square is $square->{width}00 centimeters broad."; In fact, any value in the namespace can be included in a string with this syntax. Simply write the expression the same - way as it would have appeared outside the string, and then wrap it + way as it would appear outside the string, and then wrap it in { and }. Since { can not be escaped, this syntax will only be recognised when the $ immediately follows the