Home  >  Article  >  Backend Development  >  What do 2 plus signs mean in php

What do 2 plus signs mean in php

藏色散人
藏色散人Original
2022-01-10 09:10:582756browse

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.

What do 2 plus signs mean in php

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn