How do you write multiple line of comment? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do you write multiple line of comment?

26th Jul 2016, 7:24 PM
Moses
11 Answers
+ 2
Add 👉🏿 // Comments will come here Or to add paragraph 👇 /* paragraph will come inside */
27th Jul 2016, 4:52 PM
Abdul Kuddoos Mohamed Shafran
Abdul Kuddoos Mohamed Shafran - avatar
+ 2
php provides 3 types of comments #for single line //this is also a single line comment /*this is used of multi line comment*/
30th Jul 2016, 6:52 AM
HITESH
HITESH - avatar
+ 2
/*Comment Statement*/
3rd Aug 2016, 4:35 PM
Prince Pranav
Prince Pranav - avatar
+ 2
<?php /* this is a comment you can write anything in between */ ?>
18th Aug 2016, 4:14 AM
Vijay Vimal
Vijay Vimal - avatar
+ 1
You can also use single line comment e.g. // this is single line comment
27th Jul 2016, 12:12 AM
abhijit kumbhar
abhijit kumbhar - avatar
+ 1
/* multiple comments goes here... multiple comments goes here... multiple comments goes here...*/
4th Aug 2016, 3:35 PM
Avijit Bhattacharjee
Avijit Bhattacharjee - avatar
+ 1
/*comment line 1 Comment line 2 Comment line 3 ... etc*/
22nd Aug 2016, 4:30 AM
Ahmed Abd Elnaby
Ahmed Abd Elnaby - avatar
+ 1
/* comments */
28th Aug 2016, 9:27 PM
Syed Ayaz Hussain
Syed Ayaz Hussain - avatar
+ 1
<?php /* this is a comment you can write anything in between */
1st Jan 2017, 3:35 PM
Divyesh Kashiyani
Divyesh Kashiyani - avatar
+ 1
/*comment*/
6th Dec 2017, 7:17 AM
Ashhar Ahmed
Ashhar Ahmed - avatar
0
/* comment As you want lines number */
6th Dec 2017, 7:19 AM
Ahmed Abd Elnaby
Ahmed Abd Elnaby - avatar