From d1dde0f963ad1419495d63fb1f0923f00057d8c8 Mon Sep 17 00:00:00 2001 From: Barney Laurance Date: Wed, 26 Jul 2023 19:44:11 +0100 Subject: [PATCH] Update 05-variables.md Add some more text --- content/05-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/05-variables.md b/content/05-variables.md index 44531f8..79cf9e8 100644 --- a/content/05-variables.md +++ b/content/05-variables.md @@ -2,7 +2,7 @@ {% block body%} -Variables in PHP always have a dollar sign `$` at the start of their names, and you declare a variable by assigning a +Variables in PHP always have a dollar sign like `$` at the start of their names, and you declare a variable by assigning a value to it. PHP *interpolates* double-quoted strings with variables. Edit hello.php to use a variable: ```php @@ -105,4 +105,4 @@ $planetPopulations = [ echo "The population of Earth is {$planetPopulations['Earth']}.\n"; ``` -{% endblock %} \ No newline at end of file +{% endblock %}