Home >Backend Development >PHP Tutorial >PHP language comments, single-line comments and multi-line comments related content
This article mainly introduces PHP language comments, single-line comments and multi-line comments. Friends in need can refer to
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 //输出 php中文网 echo php中文网"; ?>
2. PHP multi-line comments
PHP multi-line comment symbols: /* */
PHP multi-line comment example:
<?php /*输出 php中文网 脚本之家是国内专业的网站建设资源、脚本编程学习类网站,提供asp、php、asp.net、javascript、jquery、vbscript、dos批处理、网页制作、网络编程、网站建设等编程资料。 */ ?>
Related recommendations:
phpstorm regular matching deletion Blank lines, comment lines
Examples of sequential linked lists and linked linear lists of php data structures
Through the source code To parse the related content of Laravel dependency injection
The above is the detailed content of PHP language comments, single-line comments and multi-line comments related content. For more information, please follow other related articles on the PHP Chinese website!