diff options
author | Adam Bard <github@adambard.com> | 2015-10-31 18:29:19 +0800 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2015-10-31 18:29:19 +0800 |
commit | 53b86047f444689fb5eeb25078310b478dca92c9 (patch) | |
tree | b319f821decbbe5aa5d7476b55ada73666643ab6 | |
parent | b0dc8331cc9bc354fe3be817dba28f0bb68220d8 (diff) | |
parent | 5afca01bdfb7dab2e6086a63bb80444aae9831cb (diff) |
Merge pull request #1910 from definitelyliam/patch-1
[php/en] echo fix and cleanup
-rw-r--r-- | php.html.markdown | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/php.html.markdown b/php.html.markdown index 0504ced2..7b0cf61c 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -3,6 +3,7 @@ language: PHP contributors: - ["Malcolm Fell", "http://emarref.net/"] - ["Trismegiste", "https://github.com/Trismegiste"] + - [ Liam Demafelix , https://liamdemafelix.com/] filename: learnphp.php --- @@ -156,14 +157,13 @@ unset($array[3]); * Output */ -echo('Hello World!'); +echo 'Hello World!'; // Prints Hello World! to stdout. // Stdout is the web page if running in a browser. print('Hello World!'); // The same as echo -// echo and print are language constructs too, so you can drop the parentheses -echo 'Hello World!'; +// print is a language construct too, so you can drop the parentheses print 'Hello World!'; $paragraph = 'paragraph'; @@ -335,7 +335,7 @@ switch ($x) { $i = 0; while ($i < 5) { echo $i++; -}; // Prints "01234" +} // Prints "01234" echo "\n"; |