php decrement variable

Solutions on MaxInterview for php decrement variable by the best coders in the world

showing results for - "php decrement variable"
Isabella
22 Sep 2020
1$var = 1;
2// use value (1) THEN decrement by one
3$var--;
4// decrement by one THEN use value (0)
5--$var;
6
7// aside: decrement by custom amount (1 emulates the above)
8$var -= 1;
9$var -= $step;
Luis
15 Jun 2017
1$variable--;