> -----Original Message-----
> From: Rasmus Schultz [mailto:ras...@mindplay.dk] 
> Sent: 07 October 2012 02:10
> To: internals@lists.php.net
> Subject: [PHP-DEV] Re: Arrays which have properties of sets
> 
> 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.

See SPL's SplObjectStorage. That allows object instances as keys.

Jared


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to