Home > Article > Backend Development > What does -= mean in php
In php, the -= symbol represents the subtraction operator. The syntax of this operator is such as "x -= y". The expression is equivalent to "x = x - y", where the "=" symbol is The basic assignment operator in PHP.
The operating environment of this article: windows7 system, PHP version 7.4, DELL G3 computer
First of all, you must know the basic assignment operations in PHP The symbol is "=". It means that the left operand is set to the value of the right-hand expression. That is, the value of "$x = 5" is 5.
What does -= mean in php?
x -= y is equivalent to x = x - y, which means minus.
More as follows:
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What does -= mean in php. For more information, please follow other related articles on the PHP Chinese website!