What are Comments in PHP and How to Use Them

Опубликовано: 01 Октябрь 2024
на канале: Techie Davinder
115
6

Following Topics are Covered:
What are comments?
Comments are lines that are not interpreted or compiled as a part of Program. They are only used for documentation purpose.

Use of Comments
1. Let other programmers read and understand your code easily.
2. Comments can remind a programmer that for what purpose or logic he writes the code.

Types of Comments
1. Single Line Comment
1.1 Two types
1.1.1 Starting with // - Double Forward Slash
1.1.2 Starting with # (Hash)
2. Multiline Comment
Start with /* and Ends with */



Follow on Facebook
  / techiedavinder  

Follow on Instagram
  / techiedavinder