- The Comment lines are used to make the code more understandable and for ease of use.
- Mostly, Command lines let others understand your code.
- Most programmers have a habit of looking back on their own code for future reference.
- The comment lines helps you to remind you what you were thinking, when you wrote the code.
Two types of Comment Lines
- Single Line Comment(// , #)
- <?php
-
- # This is also a single-line comment
- ?>
- Multiple Line Comment (/*...*/
These are all the basics for an Introduction to PHP.
Here I have attached example coding for the above topics. Kindly refer to it.
Thank you!.