ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾PHP ±à³Ì£¾PHP 5 Power programming
Team LiB
Previous Section Next Section

2.3. Comments

The next thing you need to learn about PHP is how to write comments, because most of the examples of this chapter have comments in them. You can write comments three different ways:

  • C way

    /*  This is a C like comment
     *  which can span multiple
     *  lines until the closing tags
     */
    

  • C++ way

    // This is a C++ like comment which ends at the end of the line
    

  • Shell way

    # This is a shell like comment which ends at the end of the line
    

    Team LiB
    Previous Section Next Section