1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/spl/tests/iterator_038.phpt
2008-05-24 14:10:44 +00:00

20 lines
276 B
PHP
Executable File

--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===