1--TEST--
2SPL: Test on RecursiveIteratorIterator key function checking switch statements
3--CREDITS--
4Rohan Abraham (rohanabrahams@gmail.com)
5TestFest London May 2009
6--FILE--
7<?php
8  $ar = array("one"=>1, "two"=>2, "three"=>array("four"=>4, "five"=>5, "six"=>array("seven"=>7)), "eight"=>8, -100 => 10, NULL => "null");
9  $it = new RecursiveArrayIterator($ar);
10  $it = new RecursiveIteratorIterator($it);
11  foreach($it as $k=>$v)
12  {
13    echo "$k=>$v\n";
14    var_dump($k);
15  }
16?>
17--EXPECT--
18one=>1
19string(3) "one"
20two=>2
21string(3) "two"
22four=>4
23string(4) "four"
24five=>5
25string(4) "five"
26seven=>7
27string(5) "seven"
28eight=>8
29string(5) "eight"
30-100=>10
31int(-100)
32=>null
33string(0) ""
34