Better, IMO, but much depends on what the reader knows about x and y from the surrounding code:
$x = 0; if ($y) { $x = 1; ... }
In reply to Re: Better expression for $x = !!$y||0
by ysth
in thread Better expression for $x = !!$y||0
by borisz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |