Related post

PHP comment- How to make a comment in PHP




Hey, welcome to zhullyblog. If this is your first time here , please Subscribe to Zhullyblog by Email to get latest tutorial.


PHP comment
A comment is a text that explains a code. It is simply a normal English text that simplifies the purpose of a code. It makes a code readable to whoever is viewing it. Although, a comment is completely ignored by the complier.

So, how to we write a comment in PHP?
Let’s learn.
PHP supports both a single line and multi line comment.

Single line comment
A single line comment that is written on a single line. I'm sure you get that. It’s a comment that maintains a line. To write a single line comment in PHP, you begin with either two slahes (//) or a harsh symbol(#).
//This is an example of a single line comment in PHP
#This is a single line comment

Multiline comment
A multiline comment is a comment that is extended to the next line. It a long comment.
To write a multiline comment, you begin with /* and end with */ like this.


Please share






Comments