diff options
author | Adam <adam@adambard.com> | 2015-10-31 19:34:51 +0800 |
---|---|---|
committer | Adam <adam@adambard.com> | 2015-10-31 19:34:51 +0800 |
commit | c23fa3613874bc22b65e5506c374c8f8bf2691d8 (patch) | |
tree | 53daaaf693c81e62ffe88561e9b4b0c607d4902a /php.html.markdown | |
parent | df82b37a36ed05de7f64797e9cbe5c58ef1feffa (diff) |
Revert "[php/en]"
This reverts commit 5afca01bdfb7dab2e6086a63bb80444aae9831cb.
Diffstat (limited to 'php.html.markdown')
-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 7b0cf61c..0504ced2 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -3,7 +3,6 @@ language: PHP contributors: - ["Malcolm Fell", "http://emarref.net/"] - ["Trismegiste", "https://github.com/Trismegiste"] - - [ Liam Demafelix , https://liamdemafelix.com/] filename: learnphp.php --- @@ -157,13 +156,14 @@ 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 -// print is a language construct too, so you can drop the parentheses +// echo and print are language constructs too, so you can drop the parentheses +echo 'Hello World!'; print 'Hello World!'; $paragraph = 'paragraph'; @@ -335,7 +335,7 @@ switch ($x) { $i = 0; while ($i < 5) { echo $i++; -} // Prints "01234" +}; // Prints "01234" echo "\n"; |