JavaScript <-> PHP | Single line comment

JavaScript

//

Description

//
Used keywords: //
Data:
  • text -

Examples

JavaScript

Single line comment the possible of use:
x = 5 * y; // x = xy
// y = 123;
if (x > 0) // x == true
   x=5;
.
PHP

//

Description

//
Used keywords: //
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;
JavaScript

//

Description

//
Used keywords: //
Data:
  • text -

Examples

JavaScript

Single line comment the possible of use:
x = 5 * y; // x = xy
// y = 123;
if (x > 0) // x == true
   x=5;
.
PHP

#

Description

#
Used keywords: #
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;
Languages: en hu cz sk