Change curly braces statement (#1804)

The '$$' before the braces was a bit confusing. I added a couple lines that show that you have options on where the '$' goes when it comes to curly braces in strings.
This commit is contained in:
Ryan 2016-06-16 09:04:40 -04:00 committed by ven
parent 84260a4cda
commit 367f1477f9

View File

@ -88,6 +88,8 @@ $escaped = "This contains a \t tab character.";
$unescaped = 'This just contains a slash and a t: \t';
// Enclose a variable in curly braces if needed
$apples = "I have {$number} apples to eat.";
$oranges = "I have ${number} oranges to eat.";
$money = "I have $${number} in the bank.";
// Since PHP 5.3, nowdocs can be used for uninterpolated multi-liners