PHP basic syntax: self-increment and self-decrement
Self-adding and self-subtracting operations
Self-adding and self-subtracting means adding 1 to yourself or subtracting 1 from yourself.
If you have studied other programming languages. You will find that the usage here is another rule in the computer. It can be used like this, which makes it more concise.
Symbol | Description |
---|---|
First Add | |
Assign value first and then subtract | |
Add first and then assign value | |
Decrease first and then assign value |