Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63267 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91068 invoked from network); 7 Oct 2012 09:02:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Oct 2012 09:02:03 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:33893] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/01-07529-90541705 for ; Sun, 07 Oct 2012 05:02:02 -0400 Received: by mail-ie0-f170.google.com with SMTP id c12so8299822ieb.29 for ; Sun, 07 Oct 2012 02:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=31eXwnRHtO2VhUdfjmaxCZCZEvwykNW5zbHCTuqeceM=; b=xAJIW4gxTJoOHnpQS2g+VmvsExlI+u/vHVkDmoDWNx0qeGQWwOmAwbS3ANahwofzGV Xq1ED59PpRe1GbKitaqkDW0LHItRwYnRnoLhqE14OvKX+EJuafvQuzM5ajpsc6nHVSMj Le2rUbuiwKsBbkKqiPieCUBA6jtBdUIgWqIWqm8DNnl0PrHKZu2SQyUXc/jVdi97wxH8 k8xNjcMPGsvIzOvNn/qpM37C3QbcrbL/LQIDyCDMDiJMkjkgVlMl28vsLHB4ZwaHzXLD ICdPxxwJJlwkGjYkdLxMPAdFkSVAcuUM9r5cb8AUApCA9MhZ2fsedqj3HseAScGrR1dj aJnA== MIME-Version: 1.0 Received: by 10.50.220.130 with SMTP id pw2mr2835573igc.6.1349600519217; Sun, 07 Oct 2012 02:01:59 -0700 (PDT) Received: by 10.64.33.143 with HTTP; Sun, 7 Oct 2012 02:01:59 -0700 (PDT) Received: by 10.64.33.143 with HTTP; Sun, 7 Oct 2012 02:01:59 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Oct 2012 11:01:59 +0200 Message-ID: To: Rasmus Schultz Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=bcaec555516489611604cb745bd6 Subject: Re: [PHP-DEV] Re: Arrays which have properties of sets From: pierre.php@gmail.com (Pierre Joye) --bcaec555516489611604cb745bd6 Content-Type: text/plain; charset=ISO-8859-1 On Oct 7, 2012 3:10 AM, "Rasmus Schultz" 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 --bcaec555516489611604cb745bd6--