On Oct 7, 2012 3:10 AM, "Rasmus Schultz" <ras...@mindplay.dk> wrote: > > Since I was the one who started this discussion, I'd like to reply to > some of these points. > > First off, let me say - as you pointed out, when the values are > unique, they are best represented > as keys... however, this of course applies only to value-types, which > isn't the problem, and not > why I started this conversation in the first place. Objects don't work > as keys. And objects do > not always have a value that you can use as keys.
Object hash may be what you are looking for. http://php.net/manual/en/function.spl-object-hash.php Cheers, Pierre