Logical OR in assignment
- From: karns.17@xxxxxxx ("Jason Karns")
- Date: Wed, 27 Sep 2006 22:05:42 -0400
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
.
- Follow-Ups:
- Re: [PHP] Logical OR in assignment
- From: Larry Garfield
- Re: Logical OR in assignment
- From: ZeldorBlat
- Re: [PHP] Logical OR in assignment
- Prev by Date: RE: [PHP] Best open source project/framework to support a php training course?
- Next by Date: Re: Logical OR in assignment
- Previous by thread: Re: [PHP] I can see my php code in browser?
- Next by thread: Re: Logical OR in assignment
- Index(es):