Home  >  Article  >  Backend Development  >  PHP诠释风格及规则

PHP诠释风格及规则

WBOY
WBOYOriginal
2016-06-13 12:44:29834browse

PHP注释风格及规则

PHP类似java 有三种注释风格,但它的注释必须放到“?>” 结束符号前才有效,否则就属于HTML注释了。

?

  1. 多行注释
    /*
    ?content......
    */
  2. 单行注释
    // content
  3. Shell 脚本风格
    # content
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn