我今天在一些PHP代码中看到了这个:
$items = $items ?: $this->_handle->result('next', $this->_result, $this);
我不熟悉?:这里使用的运算符.它看起来像一个三元运算符,但是省略了判断谓词是否为真的表达式.这是什么意思?
?:
php coding-style language-construct conditional-operator
coding-style ×1
conditional-operator ×1
language-construct ×1
php ×1