<?php $objects = []; for ($i=0; $i<10; $i++) { $foo = new stdClass(); $foo->id = $i; $objectHash = spl_object_hash($foo); $objects[$objectHash] = $objectHash; } echo count($objects);
You have javascript disabled. You will not be able to edit any code.