PHP Comments # vs //

前端 未结 8 795
广开言路
广开言路 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:12

    For single line comments, there is no significant technical reason for prefering // over the octothorpe (that's what the Zend PHP 5 Certification Study Guide calls #) or vice versa. // seems to the more common choice out there in the wild.

提交回复
热议问题