PHP - reversed order in if statement

前端 未结 7 1205
-上瘾入骨i
-上瘾入骨i 2021-01-12 01:19

This is a question that is bugging me for a long time and can\'t find any answer... Noticed it\'s used quite a lot by Zend Framework Developers,

What is the differen

相关标签:
7条回答
  • 2021-01-12 02:01

    Such order of elements in comparison I think is meant to prevent accidental assignment in if statements.

    0 讨论(0)
提交回复
热议问题