【发布时间】:2011-12-01 22:41:52
【问题描述】:
对于这个数组($options):
Array (
[0] => 0
[1] => 1
[2] => 2
)
PHP 返回 TRUE:
$this->assertTrue( in_array('Bug', $options ) ); // TRUE
$this->assertTrue( in_array('Feature', $options ) ); // TRUE
$this->assertTrue( in_array('Task', $options ) ); // TRUE
$this->assertTrue( in_array('RockAndRoll', $options ) ); // TRUE
为什么?
【问题讨论】:
-
@Phil:哦,是的,我是这么想的,在我看到你的回复之前就把它删除了。