php language comments single line comments and multi line comments

  • 2021-09-11 19:40:15
  • OfStack

PHP language comments are divided into single-line comments and multi-line comments.

1. PHP single-line comment:

PHP Comment Symbol: //

PHP single-line comment example:


<?php
// Output   Script House 
echo  Script House ";
?>

2. PHP multi-line comment

PHP Multiline Comment Symbol: /* */

PHP multi-line annotation example:


<?php
/* Output   Script House 
 Script House is a professional website construction resource in China, and a script programming learning website provides asp , php , asp.net , javascript , jquery , vbscript , dos Batch processing, web page making, network programming, website construction and other programming materials. 
*/
?>

Basically, that's it. It's very basic, that is, it's easy to forget.


Related articles: