我有一个问题。这个命令是什么意思?是if还是?
这是我所指的命令:
$this->user_m->loggedin() == FALSE || redirect($dashboard);
就像这样:
if ($this->user_m->loggedin() == false) {
redirect($dashboard);
}
见http://en.wikipedia.org/wiki/Short-circuit_evaluation
我有一个问题。这个命令是什么意思?是if还是?
这是我所指的命令:
$this->user_m->loggedin() == FALSE || redirect($dashboard);
就像这样:
if ($this->user_m->loggedin() == false) {
redirect($dashboard);
}
见http://en.wikipedia.org/wiki/Short-circuit_evaluation