Смотреть код
<?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;
?>
Описание:
Англ (оригинал)Add comments in PHP
Рус (машинный) Добавить комментарии в PHP