Questions about ob_get_clean

Source: Internet
Author: User
Questions about ob_get_clean
 

The execution result of this program is hello word everyone.
The strange thing is why ob_start () does not need to be declared ()


Reply to discussion (solution)

What I see on the Internet is:
Ob_start () indicates opening the buffer. the write-not-write relationship is not very large. it is added here according to the PHP Standard writing method.

The buffer is enabled by default.
You can use ob_get_level () to observe

The buffer is enabled by default.
You can use ob_get_level () to observe


So ~

You can look at this

// Ob_start (); echo 12345; $ out1 = ob_get_clean (); echo "hello word"; $ out = ob_get_clean (); echo $ out. $ out1;

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.