Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46286 invoked by uid 1010); 6 Nov 2003 01:01:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46262 invoked from network); 6 Nov 2003 01:01:14 -0000 Received: from unknown (HELO sccimhc02.asp.att.net) (63.240.76.164) by pb1.pair.com with SMTP; 6 Nov 2003 01:01:14 -0000 Received: from [192.168.0.102] (12-223-87-232.client.insightbb.com[12.223.87.232]) by sccimhc02.asp.att.net (sccimhc02) with SMTP id <20031106010113im200q2bf8e>; Thu, 6 Nov 2003 01:01:13 +0000 Mime-Version: 1.0 (Apple Message framework v606) In-Reply-To: <3FA8A1FE.2000808@abox.co.il> References: <457640B1-0E01-11D8-97C5-000393030CE6@insightbb.com> <3FA8A1FE.2000808@abox.co.il> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Date: Wed, 5 Nov 2003 20:01:10 -0500 To: PHP Development X-Mailer: Apple Mail (2.606) Subject: Re: [PHP-DEV] Array Keys From: LingWitt@insightbb.com I noticed that echo $object statements in PHP 5 display object ids that are kept by the engine, so this data is already in the string form and it is data that exists. As for as a use for this feature, one can't easily say there is not a use; there have been times when I wished to have this feature --though I usually found some other way to do it, but this idea is intuitive. > Andi Gutmans > I don't think it's a good idea because it would break lots of other > things such as foreach(). keys have to be integers or strings. On 5 Nov 2003, at 2:08 AM, netcat wrote: > Yes, nice and generally it's nice to have a language that it's > possible to use > anything as index but what use do you see for it ? > Hash with objects as indexes ..... will hold additional data for > objects? > So why not store the data inside the object itself ?