The php interview questions are as follows:
Copy code The code is as follows:
$a = 1;
$x =&$a;
$b=$a++;
?>
Q:
What are the values of $b and $x?
The answers to the PHP interview questions are as follows:
$b = 1;
$x = 2;
Understand? If you don’t understand, think about it again. When a variable is equal to a reference to another variable, if either party changes its value, the value seen by the other party will also change. If you add it before, it will show up this time, and if you add it after, it will show up next time.
http://www.bkjia.com/PHPjc/322325.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322325.htmlTechArticlephp interview questions are as follows: Copy the code The code is as follows: ?php $a = 1; $x = $b= $a++; ? Question: What are the values of $b and $x? The answers to the php interview questions are as follows: $b = 1; $x = 2; Do you understand? ...