Revert "[php/en]"

This reverts commit 5afca01bdf.
This commit is contained in:
Adam 2015-10-31 19:34:51 +08:00
parent df82b37a36
commit c23fa36138

View File

@ -3,7 +3,6 @@ language: PHP
contributors: contributors:
- ["Malcolm Fell", "http://emarref.net/"] - ["Malcolm Fell", "http://emarref.net/"]
- ["Trismegiste", "https://github.com/Trismegiste"] - ["Trismegiste", "https://github.com/Trismegiste"]
- [ Liam Demafelix , https://liamdemafelix.com/]
filename: learnphp.php filename: learnphp.php
--- ---
@ -157,13 +156,14 @@ unset($array[3]);
* Output * Output
*/ */
echo 'Hello World!'; echo('Hello World!');
// Prints Hello World! to stdout. // Prints Hello World! to stdout.
// Stdout is the web page if running in a browser. // Stdout is the web page if running in a browser.
print('Hello World!'); // The same as echo 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!'; print 'Hello World!';
$paragraph = 'paragraph'; $paragraph = 'paragraph';
@ -335,7 +335,7 @@ switch ($x) {
$i = 0; $i = 0;
while ($i < 5) { while ($i < 5) {
echo $i++; echo $i++;
} // Prints "01234" }; // Prints "01234"
echo "\n"; echo "\n";