xref: /PHP-5.4/Zend/tests/each_003.phpt (revision 29b557ae)
1--TEST--
2Testing each() with recursion
3--FILE--
4<?php
5
6$a = array(array());
7$a[] =& $a;
8
9var_dump(each($a[1]));
10
11?>
12--EXPECTF--
13array(4) {
14  [1]=>
15  array(0) {
16  }
17  ["value"]=>
18  array(0) {
19  }
20  [0]=>
21  int(0)
22  ["key"]=>
23  int(0)
24}
25