search

Home  >  Q&A  >  body text

Can't you understand this line of code?

<?php

$x = 5;
$y = 6;

$foo = $x $x--;
$bar = $y $x;
$cup = $x-- $y--;
$paper = $x $x ;
$water = $y-- $x--;

echo $water $paper;
?>

Explain, thank you. I calculated 22

迷路时你就往前走迷路时你就往前走1965 days ago1172

reply all(1)I'll reply

  • kanglecheng

    kanglecheng2019-07-12 16:09:46

    This is the study notes I made, you can learn from each other
    The difference between $x++ and ++$x in PHP http://www.php.cn/blog/detail/13861.html

    reply
    0
  • Cancelreply