Analysis of variable reference and destruction mechanism in PHP, and destruction of php. Analysis of variable reference and destruction mechanism in PHP. php destruction examples in this article analyze the variable reference and destruction
We are learning
The PHP unset () function is used to destroy variables, but most of the time, the function only destroys the variable, and the value of the variable stored in the memory is still not destroyed, that is, it does not achieve the
The PHPunset () function destroys the variable. We are learning that the PHPunset () function is used to destroy Variables. However, many times, this function only destroys the variables, and the values of the variables stored in the memory are
Analysis of variable reference and variable destruction mechanism in PHP, PHP destruction
This paper analyzes the variable reference and the mechanism of variable destruction in PHP. Share to everyone for your reference. The specific analysis is as
In this paper, we analyze the mechanism of variable reference and variable destruction in PHP. Share to everyone for your reference. The specific analysis is as follows:
Variable is a very important type in PHP, we have data through variables or
Phpunset () destroys one or more variables. The unset function is a built-in function for php to destroy variables. we have introduced how to use unset to destroy static variables and global variables. at the same time, we can destroy array
In PHP, the symbol "&" represents a reference. 1, see what does not refer to this: $a = "Hello world";//define a variable, the following assignment to $b $b = $a;//This step does not precede $a with a symbol Like this "$b = & $a". No Plus, in
PHP variable definition, variable, variable reference, and destruction method. Copy the code as follows :? Php $ longbig_long_variable_name; $ longPHP; * Use a string stored in the variable $ long as the variable name of the new variable, equivalent
Php Tutorial: How to Destroy unset with variableUnset -- release the specified variableDescriptionVoid unset (mixed var [, mixed var [,...])Unset () destroys the specified variable. Note that in PHP 3, unset () will return TRUE (actually an integer
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.