Re: Boolean Assignment Operator
| From: | Robert Cummings | Date: | Mon, 02 Feb 2009 13:18:20 +0000 |
| Subject: | Re: Boolean Assignment Operator | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287532@lists.php.net to get a copy of this message | ||
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.
--
http://www.interjinn.com
Application and Templating Framework for PHP