What are the differences between the two @? why write it?-php Tutorial

Source: Internet
Author: User
What is the difference between the two @? of course, I don't think it is necessary to write it before I understand it. of course, my opinion is wrong, please give me some advice.


Reply to discussion (solution)

One is the HTDOC remarks, and the following blocking errors.

One is the HTDOC remarks, and the following blocking errors.

I don't need to talk about the remarks. that's for sure. The key is to use the remarks for @. don't you have to? you don't answer the key questions. it's always hard to answer.

@ Copyright
@ Indicates ..." Or you can understand it as "about"

@ Copyright: copyright
@ License about authorization
@ Link connection
@ Since (version V1.1 of file available since release V1.1 since its release)
Subtitles
Because it is written in comments, you can write it all. Just know what's going on.

@ Header ('Location: '. $ site_url );
@ In indicates blocking error display (because an error will occur if there is an output before the header)


One is the HTDOC remarks, and the following blocking errors.

I don't need to talk about the remarks. that's for sure. The key is to use the remarks for @. don't you have to? you don't answer the key questions. it's always hard to answer.

In the remarks, @ is followed by automatic generation with special meanings. As mentioned above, writing or not writing is not affected.

It is recommended that you take a look at the related knowledge of PHP specification annotations. when you develop small projects, you may think that annotation is not important. However, it is very useful for a certain scale, especially for team cooperation. you can quickly create documents.

Annotation with @ can be recognized by some document extraction tools. some editors can recognize it as a smart prompt.

You can check that DoxyGen has run this command instead of Doxygen.

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.