"++" uses to increase 1
"--" uses to decrease 1
$no1 = 5;
$no1++; // This is equal to $no1 = $no1 + 1;
$no1--; // This is equal to $no1 = $no1 - 1;
- There is a difference when the increment operator uses before the variable and after the variable. If the operator uses before the variable then the value get after increasing the variable value. But put the increment operator after the variable then 1st it print the variable value and then increase the value by 1.