PHP - reversed order in if statement

前端 未结 7 1198
-上瘾入骨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:00

    There is no difference in order when comparing values.

    It may be easier for someone to read or write such a code, but to me it's the same as writing from right to left.

提交回复
热议问题