Questions tagged «null-coalescing-operator»

null-coalescing运算符(PHP 7中的??)用于为可为空的值类型或引用类型定义默认值。如果操作数不为null,则返回左侧的操作数;否则,返回左侧的操作数。否则返回正确的操作数。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.