$x = 10;
What is pre decrement in Java
PHP supports pre- and post-increment and decrement operators in the C manner. Only numbers and strings are affected by the increment/decrement operators. The symbol ‘—’ stands for the decrement operator.
Both prefix and postfix notations are supported by the decrement operator. The value of a variable is utilised in the expression after it has been decremented in prefix notation. Pre-increment means that the value is increased by one before being assigned to the variable.