什么是'#'在PHP?

时间:2014-06-05 09:23:50

标签: php

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

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

这是注释行吗?如果不是这样的话?我在网上搜索但找不到解决方案。

1 个答案:

答案 0 :(得分:5)

  

PHP支持'C','C ++'和Unix shell风格(Perl风格)注释。例如:

<?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