1// This is a single-line comment
2
3# This is also a single-line comment
4
5/*
6This is a multiple-lines comment block
7that spans over multiple
8lines
9*/
1
2<?php
3 /*
4 echo 'This is a test'; /* This comment will cause a problem */
5 */
6?>
7
8
1/**
2 * This function compiles a message that tells you how great coffee is
3 *
4 * @param string $compliment A nice word to describe coffee
5 * @param integer $score A score out of 10
6 */
1<?php
2// Author : https://www.codedweb.org/
3// This is a single-line comment
4# This is also a single-line comment in unix and linux
5
6/*
7This is a Multi-lines comment block
8by this way you can add muliple lines on it.
9lines
10*/
11
12// You can also use comments to leave out parts of a code line
13$var = 2 /* + 12 */ + 2;
14echo $var;
15?>
1<?php
2// This is a single-line comment
3
4# This is also a single-line comment
5
6/*
7This is a multiple-lines comment block
8that spans over multiple
9lines
10*/
11
12// You can also use comments to leave out parts of a code line
13$x = 5 /* + 15 */ + 5;
14echo $x;
15?>
1// This is a single-line comment
2# This is also a single-line comment
3/*
4This is a multiple-lines comment block
5that spans over multiple
6lines
7*/