I am updating a PHP course that I occasionally teach ...
Null Coalesce Operator ( ?? )
What are the precedence and associativity ?
https://wiki.php.net/rfc/isset_ternary
TIA
--
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
Alain Williams wrote:
I am updating a PHP course that I occasionally teach ...
Null Coalesce Operator ( ?? )
What are the precedence and associativity ?https://wiki.php.net/rfc/isset_ternary
According to master[1] it's right associative and the precendence is
between ?: and ||.
[1]
https://github.com/php/php-src/commit/2d069f640e6cccfa3ba8b1e4f375ade20fb33f64
--
Christoph M. Becker