短路表达式


写了几年php竟不知道 $A && $B = $C 是什么意思 /捂脸

看一段代码的时候,看到这样一行代码: $removeHead && $this->html = $this->_removeHead($this->html); 抽象成 $A && $B = $C 。 学了几年php,竟然不知道...
17年7月10日 阅读 (3784) 有用 (47)