What's the difference between the two @ why write it

Source: Internet
Author: User
Of course, before I do not understand, I think there is no need to write, and of course, my view is certainly wrong, but also please point twos, ah Ah


Reply to discussion (solution)

One is Htdoc remark, the following mask is wrong.

One is Htdoc remark, the following mask is wrong.

Note It is needless to say, that certainly ah, the key is the note why use @, no no no, the key questions you do not answer, always answer the perfunctory

In @copyright
@ means "in ..." or you can understand it as "about"

@copyright about Copyright
@license about Authorization
@link about Connection
@since about History (version V1.1 since release of file available since release V1.1)
Just a little headline.
Because it is written in the comments, how to write can be. You know what's going on, okay?

@header (' Location: '. $site _url);
The @ in indicates a mask error display (because an error will occur if there is output before the header)


One is Htdoc remark, the following mask is wrong.

Note It is needless to say, that certainly ah, the key is the note why use @, no no no, the key questions you do not answer, always answer the perfunctory

The @ behind the note is automatically generated with a special descriptive meaning. As the upstairs said, can write not write, no influence.

Recommend the landlord to look at the PHP specification comments on the knowledge of the individual development of a very small project may feel that the annotation is not important but for a certain size, especially when teamwork is very useful this post with @ can quickly establish a document to

Annotations with @ can be identified by some document extraction tools The editor can turn him into a smart tip.

You can look at Doxygen and this is not Doxygen's order.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.