xref: /PHP-8.3/ext/spl/tests/iterator_038.phpt (revision f8d79582)
1--TEST--
2SPL: RoRewindIterator and string keys
3--FILE--
4<?php
5
6foreach(new NoRewindIterator(new ArrayIterator(array('Hello'=>0, 'World'=>1))) as $k => $v)
7{
8    var_dump($v);
9    var_dump($k);
10}
11
12?>
13--EXPECT--
14int(0)
15string(5) "Hello"
16int(1)
17string(5) "World"
18