The behaviour of the or operator in PHP

前端 未结 4 1000
陌清茗
陌清茗 2020-12-05 04:05

I\'m trying to understand the behavior of or operator. Please see the below examples:

$e = false || true;
var_dump($e);

Outpu

4条回答
  •  无人及你
    2020-12-05 04:40

    
    

    Check this you can assign the value "5" for $foo.

    Compare than or = has high priority.. Thats the fact.... :)

提交回复
热议问题