Free guides, interview Q&As, and job responsibility breakdowns — curated by industry veterans to help you crack MNC interviews
A comment is a part of the coding file that the programmer does not want to execute. Rather, the programmer uses it to either explain a block of code or to avoid the execution of a specific part of code while testing.
Single Line Comments
<?php
// This is a single-line comment
# This is also a single-line comment
?>
Multiple-Line Comments
<?php
/*
This is a
multiple line
Comment.
*/
?>