From 683c98f6461e4ec60ad9f398df94b4695c75ac9c Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Wed, 22 Sep 2010 08:31:49 +0000 Subject: [PATCH] Fix doc bug #52897 (Strings variable parsing - complex syntax). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303666 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/string.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/language/types/string.xml b/language/types/string.xml index 518fb3d74f..7e62730b6a 100644 --- a/language/types/string.xml +++ b/language/types/string.xml @@ -586,14 +586,14 @@ 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 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 - {. Use {\$ to get a literal - {$. Some examples to make it clear: + Any scalar variable, array variable or object property with a + string representation can be included via this syntax. + Simply write the expression the same 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 {. Use {\$ to get a + literal {$. Some examples to make it clear: