xxxxxxxxxx
// single line comment
/* multi line comment
hello
*/
xxxxxxxxxx
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
xxxxxxxxxx
<?php
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
// You can also use comments to leave out parts of a code line
$x = 5 /* + 15 */ + 5;
echo $x;
?>
xxxxxxxxxx
<?php
// Author : https://www.codedweb.org/
// This is a single-line comment
# This is also a single-line comment in unix and linux
/*
This is a Multi-lines comment block
by this way you can add muliple lines on it.
lines
*/
// You can also use comments to leave out parts of a code line
$var = 2 /* + 12 */ + 2;
echo $var;
?>
xxxxxxxxxx
/**
* Does something interesting
*
* @param Place $where Where something interesting takes place
* @param integer $repeat How many times something interesting should happen
*
* @throws Some_Exception_Class If something interesting cannot happen
* @author Monkey Coder <mcoder@facebook.com>
*
* @return Status
*/
xxxxxxxxxx
// I'm a single, line comment
# I am another single line comments using #
/*
And I am a
multiline comment
*/
xxxxxxxxxx
//For a single line comment use //:
//this is a comment too
//for multi-line comments use /* and */:
/* <--start of multi-line comment
this is a comment
this is a comment too (end of multi-line comment)-->*/
xxxxxxxxxx
/*There are two types of comments:
1) Spans over multiple lines - Multiple-line comment
2) Spans over one line only - Sinlge-line comment
*/
/* There are two ways to write a single-line comment:
1) Using double slash
2) Using the hash tag
*/
// This is an example of single-line comment using double slash
# This is an example of single-line comment using hash tag
/*There is only one way of using multiple line comments, startin with the
slash and asterisk respectively, and ending with asterisk and slash
respectively */
xxxxxxxxxx
/**
* This function compiles a message that tells you how great coffee is
*
* @param string $compliment A nice word to describe coffee
* @param integer $score A score out of 10
*/
xxxxxxxxxx
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/