Home  >  Article  >  Backend Development  >  What does -= mean in php

What does -= mean in php

藏色散人
藏色散人Original
2021-11-30 11:15:525594browse

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.

What does -= mean 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:

What does -= mean in php

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!

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