"PHP Basics" omit end tag

Source: Internet
Author: User
Tags php basics php compiler

For the PHP compiler, the end tag?> of the script is optional and you can ignore it when you write the program. You may have met: When you use the Include (), require (), or input/output buffering functions, there is sometimes a blank line at the top of the page or a "header had send" error message, which is related to the end tag.

Omit end tags for pure php files. If you are mixing PHP with HTML, you cannot omit it.

Ignoring the end tag is not only less than two characters, but also makes our development process smoother.

"PHP Basics" omit end tag

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.