php-src/Zend/tests/each_002.phpt
2008-07-09 11:14:20 +00:00

31 lines
359 B
PHP

--TEST--
Testing each() with array and object
--FILE--
<?php
$foo = each(new stdClass);
var_dump($foo);
var_dump(each(new stdClass));
$a = array(new stdClass);
var_dump(each($a));
?>
--EXPECTF--
bool(false)
bool(false)
array(4) {
[1]=>
object(stdClass)#1 (0) {
}
["value"]=>
object(stdClass)#1 (0) {
}
[0]=>
int(0)
["key"]=>
int(0)
}