php-src/ext/spl/tests/iterator_038.phpt
2012-10-10 10:27:49 +08:00

20 lines
276 B
PHP

--TEST--
SPL: RoRewindIterator and string keys
--FILE--
<?php
foreach(new NoRewindIterator(new ArrayIterator(array('Hello'=>0, 'World'=>1))) as $k => $v)
{
var_dump($v);
var_dump($k);
}
?>
===DONE===
--EXPECT--
int(0)
string(5) "Hello"
int(1)
string(5) "World"
===DONE===