Home  >  Article  >  Backend Development  >  php += .= what does it mean?

php += .= what does it mean?

藏色散人
藏色散人Original
2021-11-22 10:23:313829browse

The = symbol in php is equivalent to the plus operator, which means adding two variables. The syntax is "x = y" or "x = x y"; the .= symbol in php means connecting two strings. The syntax is "a .= b" or "a = a . b".

php += .= what does it mean?

#The operating environment of this article: Windows7 system, PHP7.1, Dell G3 computer.

php = .= What does it mean?

Look at the formula:

  • x = y is equivalent to x = x y , which means addition;

  • a .= b is equivalent to a = a . b , which means concatenating two strings.

php += .= what does it mean?

Recommended study: "PHP Video Tutorial"

The above is the detailed content of php += .= what does it mean?. 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