PHP comments can be used to describe any line of code so that other developer can understand the code easily. It can also be used to hide any code.
PHP supports single line and multi line comments. These comments are similar to C/C++ and Perl style (Unix shell style) comments.
PHP Single Line Comments
There are two ways to use single line comments in PHP.
Welcome to PHP single line comments
PHP Multi Line Comments
In PHP, we can comments multiple lines also. To do so, we need to enclose all lines within /* */. Let's see a simple example of PHP multiple line comment.
Welcome to PHP multi line comment
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week