Home > Article > Backend Development > What do 2 plus signs mean in php
The two plus signs in php represent self-increment. For example, "i" means to take the value of i first, and then add 1 to the value of i, and "i" means to add 1 to the value of i first, and then take i. value.
#The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.
What do the two plus signs in php mean?
means self-adding.
The basic syntax of php is the same as C
i: First take the value of i, and then add 1 to the value of i.
i: First add 1 to the value of i, and then take the value of i.
There is also something similar in VB ASP i=i 1 which is equivalent to i in C
Note: $i=$i 1; cannot replace $i; appears in the program.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What do 2 plus signs mean in php. For more information, please follow other related articles on the PHP Chinese website!