我试图理解下面的代码,但我对&&操作符的使用感到困惑. 请&&在以下代码中解释操作的目的
&&
function getErrors($autoClean=TRUE) { $retVal = $this->getErrorMessages(); $autoClean && $this->unsetErrorMessages(); return $retVal; }
php operators
operators ×1
php ×1