This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
lab [2019/03/14 12:29] fplmarques [Current Projects] |
lab [2019/03/14 12:38] fplmarques [Current Projects] |
||
---|---|---|---|
Line 35: | Line 35: | ||
\\ | \\ | ||
<html> | <html> | ||
- | <head> | + | <body> |
- | <title>Example</title> | + | |
- | </head> | + | <?php |
- | <body> | + | // This is a single-line comment |
- | <?php | + | # This is also a single-line comment |
- | echo "Hi, I'm a PHP script!"; | + | |
- | ?> | + | |
- | </body> | + | /* |
+ | This is a multiple-lines comment block | ||
+ | that spans over multiple | ||
+ | lines | ||
+ | */ | ||
+ | |||
+ | // You can also use comments to leave out parts of a code line | ||
+ | $x = 5 /* + 15 */ + 5; | ||
+ | echo $x; | ||
+ | ?> | ||
+ | |||
+ | </body> | ||
</html> | </html> | ||
- | \\ |