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
#一, PHP variable definition: Variables are used to store values, such as numbers, text strings or arrays, V: string/integer/double/array/object
Naming rules:
1. The variable name of PHP is case-sensitive. 2. The variable name must begin with $3,
a more comprehensive set of PHP tutorials , basic video and some small combat projects, below is the video directoryCD-ROM (i) \php employment Class (I.)CD-ROM (i) \php Technical exchange zone. URLCD-ROM (i) \ "Wisdom Special issue" belongs to it
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
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 is used to obtain the name of a variable. php is used to obtain the variable name. Php obtains the name of a variable. in php, all the variables are stored in the HastTable structure of the symbol table, the scope of a symbol is related to the
Php pre-defined variable help (with instance ). From php4.1.0, the preferred method for getting external variables is to use the Superglobal variables mentioned below. Prior to this, people were either dependent on register_globals, or long
The preferred method for php to obtain external variables is to use the hyperglobal variables mentioned below. Prior to this, people were either dependent on register_globals or long pre-defined PHP array ($ HTTP _ * _ VARS ). From PHP5.0.0, PHP
: This article mainly introduces php programming notes. if you are interested in PHP tutorials, please refer to them. Three methods for php to obtain POST data
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese
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.