Hey,

I'm relitivly new to PHP, I have been pretty much just reading and doing simple tests and tutorials to give me a hands on view of it all.

Now, In HTML you can use the "!" to write stuff for your refrence in the code, which won't show anything on the site.. in PHP you can use the "\" to do the same...

I'm just wondering what you guys do, and what yo would suggest me to do, should I tag all my seperate code on the site with a\ so I know whats what, easier or not worth it since a lot of code links up with each other?

If it depends on the kinda site and what im using php for, it's a large dadabse side, (for a game) a ladder league basically... allowing users to keep track of win% total win, games, score.. ect ect.

Thanks,
Ian

    I guess it depends really. I use \ for single lines of comments within my code, but I use / with and ending / for multiple lines. I only ever use this for some comments to help me debug later on
    HTH

      If you're talking about comments, in html it is actually
      <!-- comment -->

      in PHP one can use:

      //comment
      / multi line
      comment
      /
      #comment

      you should comment you code if its function isnt obvious and if you want to make the code easier to understand and maintain

        Write a Reply...