<?php $storage = new SplObjectStorage(); $storage[new stdClass] = 'foo'; $storage[new stdClass] = 'bar'; $storage[new stdClass] = 'baz'; foreach ($storage as $key => $value) { var_dump(array($key, $value)); }
You have javascript disabled. You will not be able to edit any code.