0 votes
210 views
in PHP by (2.0k points)
edited

How to do single and multi line comment in PHP?

1 Answer

0 votes
by (2.0k points)
edited

PHP single line comment is made in two ways:

  • Using // (C++ style single line comment)
  • Using # (Unix Shell style single line comment)

PHP multi-line comment is made by enclosing all lines within.

Related questions

0 votes
1 answer 209 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 166 views
0 votes
1 answer 1.2k views
0 votes
1 answer 79 views
asked Jun 20, 2023 in Python by Doubtly (98.9k points)
0 votes
1 answer 138 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

554 users

...