【问题标题】:What is '#' in php? [duplicate]php中的“#”是什么? [复制]
【发布时间】:2014-07-26 05:17:24
【问题描述】:

在我的php页面代码中有一行如下:

##|*IDENT=page-system-advanced-admin

这是注释行吗?如果不是,那是什么?我在网上搜索但找不到解决方案。

【问题讨论】:

  • 语法高亮已经为你解答了问题

标签: php


【解决方案1】:

PHP 支持“C”、“C++”和 Unix shell 样式(Perl 样式)cmets。例如:

<?php
    echo 'This is a test'; // This is a one-line c++ style comment
    /* This is a multi line comment
       yet another line of comment */
    echo 'This is yet another test';
    echo 'One Final Test'; # This is a one-line shell-style comment
?>

PHP Comments documentation

【讨论】:

  • 我感觉它是评论,但不确定。谢谢。
猜你喜欢
  • 2023-03-17
  • 2011-05-31
  • 2012-02-25
  • 2011-05-29
  • 2011-01-17
  • 2013-09-26
  • 1970-01-01
  • 2011-01-10
相关资源
最近更新 更多