if ($fromcat == "true" || $fromcat == 1){
error_log("binding to CAT " . $cat . " because pfc was " . $fromcat);
} else {
error_log("binding to ROOM " . $room . " because pfc was " . $fromcat);
}
请看一下上面的代码。
我想每个人都同意,如果$fromcat
为 0,我就无法在控制台中收到“绑定到 CAT (...)”消息。
然而,这里是:
[01-Apr-2013 22:34:50] binding to CAT single because pfc was 0
这怎么可能呢?不能同时显示 CAT 和数字 0!PHP喝醉了吗?