Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63268 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17455 invoked from network); 7 Oct 2012 20:06:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2012 20:06:13 -0000 Authentication-Results: pb1.pair.com header.from=jared.williams1@ntlworld.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jared.williams1@ntlworld.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ntlworld.com designates 81.103.221.48 as permitted sender) X-PHP-List-Original-Sender: jared.williams1@ntlworld.com X-Host-Fingerprint: 81.103.221.48 mtaout02-winn.ispmail.ntl.com Solaris 10 (beta) Received: from [81.103.221.48] ([81.103.221.48:27751] helo=mtaout02-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/43-07529-2B0E1705 for ; Sun, 07 Oct 2012 16:06:11 -0400 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20121007200604.DEZI1732.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Sun, 7 Oct 2012 21:06:04 +0100 Received: from p2 ([82.3.17.226]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20121007200604.CGVT23973.aamtaout03-winn.ispmail.ntl.com@p2>; Sun, 7 Oct 2012 21:06:04 +0100 To: "'Rasmus Schultz'" , Date: Sun, 7 Oct 2012 21:06:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: Thread-Index: Ac2kKKSNjbEMs+tKQGC6I6SsuOYzmwAnlc4g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Message-ID: <20121007200604.CGVT23973.aamtaout03-winn.ispmail.ntl.com@p2> X-Cloudmark-Analysis: v=1.1 cv=GaEGOwq9FwezmTggA+b6yC6zDZF2HYaK6RN/tSqdnVA= c=1 sm=0 a=cABdoUePg_4A:10 a=uObrxnre4hsA:10 a=oHf_AeXmDeQA:10 a=kj9zAlcOel0A:10 a=67BIL_jfAAAA:8 a=idmkR04CqjF7yIa-8YUA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: RE: [PHP-DEV] Re: Arrays which have properties of sets From: jared.williams1@ntlworld.com ("Jared Williams") References: > -----Original Message----- > From: Rasmus Schultz [mailto:rasmus@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