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:31] fplmarques [Current Projects] |
lab [2019/03/14 12:38] fplmarques [Current Projects] |
||
---|---|---|---|
Line 36: | Line 36: | ||
<html> | <html> | ||
<body> | <body> | ||
+ | |||
<?php | <?php | ||
- | print "<h2>PHP is Fun!</h2>"; | + | // This is a single-line comment |
- | print "Hello world!<br>"; | + | |
- | print "I'm about to learn PHP!"; | + | |
- | ?> | + | |
+ | # This is also a single-line comment | ||
+ | |||
+ | /* | ||
+ | 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> | </body> | ||
</html> | </html> | ||
- | \\ |