【发布时间】:2013-08-27 14:50:22
【问题描述】:
if ($opts['width'] == 'fs' || $opts['height'] == 'fs' || $opts['ratio'] == 'fs') {
var_dump($opts); // result of this see bellow
}
var_dump($opts) inside (!) if 语句的结果:
array(3) {
'width' => int(200)
'height' => int(0)
'ratio' => int(0)
}
这怎么可能?数组的值都不是(搅拌)fs?
【问题讨论】:
-
尝试使用
===! ideone.com/EpsAH2
标签: php if-statement