Re: Logical OR in assignment
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 27 Sep 2006 19:46:26 -0700
"Jason Karns" wrote:
I once saw the use of OR (|) in assignment.
$x = $y | $z;
Does this use bitwise OR? I'm trying to see if I could use the above
expression in place of:
$x = is_null($y) ? $z : $y;
Jason Karns
~~~~~~~~~~~
The Ohio State University [www.osu.edu]
Computer Science & Engineering [www.cse.osu.edu]
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 9/22/2006
Acording to the PHP manual at
<http://www.php.net/manual/en/language.operators.bitwise.php> the | is
a bitwise "or."
.
- References:
- Logical OR in assignment
- From: "Jason Karns"
- Logical OR in assignment
- Prev by Date: Logical OR in assignment
- Next by Date: regular expresion problem
- Previous by thread: Logical OR in assignment
- Next by thread: Re: [PHP] Logical OR in assignment
- Index(es):