<?php $foo = (object)['foo' => 'bar']; $storage = new SplObjectStorage; $storage->attach($foo, ['room' => 'ba']); foreach($storage as $value) { print_r($storage->current()); print_r($storage->getInfo()); }
You have javascript disabled. You will not be able to edit any code.