An interview question about php variable reference. Php interview questions: Copy the code as follows :? Php $ a1; $ x $ B $ a ++ ;? Q: What are the values of $ B and $ x? The answer to the php interview question is: $ b1; $ x2; do you understand? Php interview questions are as follows:
The code is as follows:
$ A = 1;
$ X = & $;
$ B = $ a ++;
?>
Q:
What are the values of $ B and $ x?
The answer to the php interview question is as follows:
$ B = 1;
$ X = 2;
Do you understand? I don't understand. think about it again. When a variable is equal to the reference of another variable, either party changes its value, and the value seen by the other party also changes. The prefix is displayed this time, and the next addition is displayed.
The pipeline code is as follows :? Php $ a = 1; $ x = $ B = $ a ++ ;? Q: What are the values of $ B and $ x? The answer to the php interview question is as follows: $ B = 1; $ x = 2; do you understand ?...