Phpunset ()

Source: Internet
Author: User
Phpunset () Description: This is the details page of php unset (). It introduces the knowledge, skills, and experience related to php, unset, and php unset, and some php source code.

Class = 'pingjiaf' frameborder = '0' src = 'http: // biancheng.dnbc?info/pingjia.php? Id = 361000 'Rolling = 'no'> 1. if multiple variable names direct to a variable value, the unset variable name only disconnects the variable name from the variable value and does not release the memory. this value still exists.
(For exceptions, see 2 ).
2. the memory will be released in both cases, otherwise the variable value still exists in the memory.
A) when the variable value occupies more than 256 bytes, unset () will be used to release the memory (this is the result of some tests, to be explained)
B) after all the variables pointing to this value (for example, a referenced variable points to this value) are destroyed
3. if you want to release the variable memory, you 'd better use $ a = NULL to release it. When NULL is assigned, this address is released, and all references pointing to this variable value are empty.
4. when a global variable is unset in a local environment, the global variable only fails in the local scope and remains unchanged elsewhere.

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/361000.html pageNo: 1.

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.