<?php class Foo { public function __toString() { return 'Bar'; } } $test = array(); $object = new Foo(); $test[$object] = 'Value'; var_dump($test);
You have javascript disabled. You will not be able to edit any code.