search

Home  >  Q&A  >  body text

PHP basic syntax: self-increment and self-decrement

Are the values ​​of self-increasing and self-decreasing all 1?

責责責责2740 days ago1363

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-07-15 14:13:49

    Self-increment: $a++ is equivalent to $a+1

    Self-decrement: $a-- is equivalent to $a-1


    reply
    0
  • 大家讲道理

    大家讲道理2017-07-15 11:58:39

    The value of each influence of self-increasing and self-decreasing is 1

    reply
    0
  • PHP中文网

    PHP中文网2017-07-15 11:41:02

    $i++
    //类似这样的代码,就是自加一


    reply
    0
  • Cancelreply