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: