Comments in php

Php comments are of two types, single line comment and multiple line comment. Comments can be added to anywhere in the program inside the php tag.

A single line comment is represented with '//' symbol and a multiple line comment starts with '/*' and '*/'.A single line comment is also represented with '#'symbol.

<?php
// This is a single line comment.

#This is a single line comment.

/* This is a
          multiple line
                    comment. */
?>

A comment with more than one line is called a multi line comment and a comment with a single line is called a single line comment.


Prev
Next

Comments

  1. The number of links is not the only factor to consider: There are links of varying quality. Read also 6 Proven Ways To Build Effective Incoming Links

    ReplyDelete

Post a Comment

Popular posts from this blog

Node.js Cheat Sheet

Enhancing Supply Chain Security and Cloud-Native Development with Chainguard

Codeigniter ! Simple But Powerful