$cup Computer calculation is equal to 13. How to calculate it?
MOMO2017-08-17 23:31:08
<?php
$x = 5;
$y = ++$x;
$z = $x + $y;
echo "{$z} </ br>";
echo "{$x} </br>";
echo $y;
?>
//You will get a plus sign for $y = ++$x; this code Change to the front and change to the back. Watch for changes. You will understand after thinking about it a few times
PHP中文网2017-07-24 09:16:17
<?php $x = 5; $y = 6; $foo = $x++ + $x--; //$x和$y不变 $bar = ++$y + ++$x; //$x=6 $y=7 $cup = $x-- + $y--; //$x和$y不变 6+7=13