You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
359 B

--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)
}