What is the difference between "||" and "or"?
I tried doing this in PHP:
$a = false || true;
$b = false or true;
var_dump($a);
var_dump($b);
You obviously think that the result would be true
for $a
and true
for $b
, but the result I got is this:
boolean true
boolean false