PHP operator precedence “Undefined order of evaluation”?

前端 未结 3 773
不知归路
不知归路 2020-12-21 19:35

http://www.php.net/manual/en/language.operators.precedence.php#example-115


<
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-21 20:02

    It can be either 2 or 3. However in most of the time it will be 3. So why it MIGHT be 2? Because PHP is not describing in which order expressions are evaluated, since it might depends on the PHP version.

提交回复
热议问题