Here's my code:
$first = 10;
$_temp1 = &$first; // important!
$result1 = (++$first) + (++$first);
var_dump($result1); // the result1's value is 24
$second = 10;
$result2 = (++$second) + (++$second);
var_dump($result2); // the result2's value is 23
$third = 10;
$_temp3 = &$third; // important!
$result3 = (++$third) + ($third++);
var_dump($result3); // the result3's value is 23
I can not understand why result1 and result3 are affected by the reference.
Could someone explain the reason about this?