> -----Original Message-----
> From: Rowan Collins [mailto:rowan.collins@gmail.com]
> Sent: Saturday, December 21, 2013 1:00 PM
> To: internals@lists.php.net
> Subject: Re: [PHP-DEV] Re: power operator (again)
>
> On 21/12/2013 10:29, Robert Stoll wrote:
> > echo ( -3 * 2); // -6
> > $x = -3;
> > echo $x * 2; // -6 -> does not behave like (-3) * 2
>
> This is an extremely poor choice of example: (-3) * 2 and -(3*2) both
> evaluate to -6 anyway, since unary minus is effectively multiplication
> by -1, and therefore commutative with multiplication.
Indeed, was probably too tired when I wrote the example :) sorry for cluttering up the discussion