The order of variable assignment
phpcn_u11218
phpcn_u11218 2017-07-22 21:39:09
0
2
1622

I am a novice, what I want to ask is, if the variable assigned in the third line is assigned again in line 7, the result is the assignment in line 7, and the assignment in the third line above is executed. .

phpcn_u11218
phpcn_u11218

reply all(2)
nearest

$a = &$b;

At this time, $a not only assigns the value of $b, but also obtains the location of $b in the memory. Therefore, when $a changes, the variable value here in the memory also changes. , $b also changes.

刘奇

Reference assignment is used here. Please see this sentence. Declaration $bar = &$fo;Add ampersand before $fo. What is the value of $bar? What is the value of $fo

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template