![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL: ArrayObject revursive var_dump 3: --FILE-- 4: <?php 5: class AO extends ArrayObject { 6: } 7: $o = new AO(); 8: $o['plop'] = $o; 9: 10: var_dump($o); 11: --EXPECTF-- 12: object(AO)#%d (1) { 13: ["storage":"ArrayObject":private]=> 14: array(1) { 15: ["plop"]=> 16: *RECURSION* 17: } 18: }