Changed definition of "double" line comment (#22203)

The correct is "multiple" line comment
This commit is contained in:
Thyago Clemente
2018-11-19 22:35:16 +01:00
committed by Manish Giri
parent c9a315f58a
commit 6a97a4bb93

View File

@ -10,7 +10,7 @@ All PHP files are saved by the extension ` .php `. PHP scripts can be added anyw
` <?php //PHP code goes here ?> ` ` <?php //PHP code goes here ?> `
### Print ### Print
To print any statement in PHP we use ` echo ` command. To print any statement in PHP we use `echo` command.
#### Code sample #### Code sample
```php ```php
@ -47,11 +47,12 @@ To write a single line comment in PHP we put hashtag `#` or by putting `//` befo
// This is also a single line comment // This is also a single line comment
?> ?>
``` ```
To write a double line comment we start the comment with `/*` and end with `*/`.
To write a multiple line comment we start the comment with `/*` and end with `*/`.
```php ```php
<?php <?php
/* This is a /* This is a
Double line comment. */ Multiple line comment. */
?> ?>
``` ```
We can also comment out some parts of the code line. We can also comment out some parts of the code line.