Re: Boolean Assignment Operator
| From: | Edmund Hertle | Date: | Mon, 02 Feb 2009 13:26:18 +0000 |
| Subject: | Re: Boolean Assignment Operator | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287534@lists.php.net to get a copy of this message | ||
2009/2/2 Robert Cummings <robert@interjinn.com>
> On Tue, 2009-02-03 at 00:07 +1100, Gavin Hodge wrote:
> > In Java / C# / C,
> > $bool &= $anotherBool;
> > is shorthand for
> > $bool = $bool & $anotherBool;
> >
> > So &= forces a reference assignment?
>
> No, =& forces reference assignment. &= works as you have written.
>
> Cheers,
> Rob.
>
Oh yeah... sorry, mixed it up...
-eddy