Home >Backend Development >PHP Tutorial >When writing a program, what is the difference between $a == 2 and 2 == $a when making judgments?

When writing a program, what is the difference between $a == 2 and 2 == $a when making judgments?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-10-22 00:00:201207browse

What is the difference between $a == 2 and 2 == $a when making judgments when writing a program

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