1
2<?php
3 /*
4 echo 'This is a test'; /* This comment will cause a problem */
5 */
6?>
7
8
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 * 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/**
2 * Does something interesting
3 *
4 * @param Place $where Where something interesting takes place
5 * @param integer $repeat How many times something interesting should happen
6 *
7 * @throws Some_Exception_Class If something interesting cannot happen
8 * @author Monkey Coder <mcoder@facebook.com>
9 * @return Status
10 */
11
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// I'm a single, line comment
2# I am another single line comments using #
3/*
4 And I am a
5 multiline comment
6*/