Comments in php

There are two ways in which you can add comments to your PHP code. The first turns a single line into a comment by preceding it with a pair of forward slashes

// This is a comment

A multiline comment

<?php
/* This is a section
 of multiline comments
 which will not be
 interpreted */
?>

Leave a Comment