PHP Comments # vs //

前端 未结 8 793
广开言路
广开言路 2020-12-09 08:43

Lately I\'ve been using # instead of // for doing single line comments inside my Code. However, I see must of the people prefer //.

相关标签:
8条回答
  • 2020-12-09 09:31

    You can use #, but // is much more common. It is also the agreed upon Code Convention in PEAR.

    0 讨论(0)
  • 2020-12-09 09:32

    I would only suggest you use // or /* */. As your programs grow you may wish to use a documentator like phpdoc to automate documentation for your program and most of these documentators as well as IDE's will only accept these two.

    0 讨论(0)
提交回复
热议问题