I notice that in the precedence chart the new **= operator is missing:
http://uk1.php.net/manual/en/language.operators.precedence.php
The announcement (below) says that it is right associative, but the precedent
chart above says that it is left associative. From the example it seems to be
right associative.
http://php.net/migration56.new-features
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h
I notice that in the precedence chart the new **= operator is missing:
http://uk1.php.net/manual/en/language.operators.precedence.php
It’s not on docs.php.net either, so the manual must just be out-of-date.
The announcement (below) says that it is right associative, but the precedent
chart above says that it is left associative. From the example it seems to be
right associative.
Yeah, that’s weird. If we check the actual PHP source, we see it is right-associative:
And I distinctly recall the RFC saying it was right-associative.
Andrea Faulds
http://ajf.me/
Hi Alain,
I notice that in the precedence chart the new **= operator is missing:
http://uk1.php.net/manual/en/language.operators.precedence.php
The announcement (below) says that it is right associative, but the precedent
chart above says that it is left associative. From the example it seems to be
right associative.
Thanks for spotting that; I’ll fix that later today if nobody beats me to it.
http://php.net/migration56.new-features
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h