treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Comments in PHP

Last updated on:

<?php

    /*
           This code by Chris Coyier
    */

    $i = 0;    // counter to be used later;

?>

Comments in PHP can be between /* */ markings (useful for multiple line comments) or after // markings (for single lines only).

View Comments

Comments

  1. Permalink to comment#

    Have you tried the other type of comments? you use the # sign and they work like // comments.


    # like this

  2. Brad
    Permalink to comment#

    Can you help me with a small text based counter script ? It says something like permission error.

Leave a Comment

Use markdown or basic HTML and be nice.