mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
20 lines
276 B
PHP
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===
|