diff options
author | Ryan <ryan.lindsey44@gmail.com> | 2016-06-16 09:04:40 -0400 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2016-06-16 15:04:40 +0200 |
commit | 367f1477f956044e5926c58639e64be68ca70494 (patch) | |
tree | 27b157b86ead35fdf100f09354ee48b0ad87cb93 /php.html.markdown | |
parent | 84260a4cda5e15cf79da08b74831767fb4cca51c (diff) |
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.
Diffstat (limited to 'php.html.markdown')
-rw-r--r-- | php.html.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/php.html.markdown b/php.html.markdown index 6c2b38c8..24d656fa 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -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 |