PHP - Single line comment: //, #
In the case of single-line comments from start tags to the end of the line, each character is interpreted as a comment. these characters will not be evaluated.//
Description
//
Data:
- text -
Examples
PHP
Single line comment the possible of use:$x = 5 * $y; // x = xy
// y = 123;
if ($x > 0) // x == true
$x=5;
PHP
Other pieces of example codes: // a = true
// x = 0xf
// x=50
// a1 = true
// a1 = false
// a1 = false
#
Description
#
Data:
- text -
Examples
PHP
Single line comment the possible of use:$x = 5 * $y; # x = xy
# y = 123;
if ($x > 0) # x == true
$x=5;
Single line comment in another programming language:
Differences to: