search

Home  >  Q&A  >  body text

Why is the result 25?

<?php$x = 5;$y = 6;

$paper = $x $x ;

$water = $y-- $x--;

echo $water $paper;

?>

I separately assigned the value first and then added, assigned the value first and then subtracted, added first and then assigned, and subtracted first and then assigned. Calculate them all separately and then add them up to calculate like this

学不会网安学不会网安1072 days ago1172

reply all(2)I'll reply

  • P粉728409985

    P粉7284099852022-04-13 20:47:41

    paper=6 6;//After the end x=7

    water=6 7;//After the end y=5, x=6

    reply
    2
  • 学不会网安

    Thank you. Got it.

    学不会网安 · 2022-04-13 21:30:07
  • Cancelreply