Re: Array Keys

From: Date: Wed, 05 Nov 2003 06:43:54 +0000
Subject: Re: Array Keys
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-5190@lists.php.net to get a copy of this message
At 09:14 PM 11/4/2003 -0500, LingWitt@insightbb.com wrote:
I don't want to seem naggish, but what do you think? On 3 Nov 2003, at 8:26 AM, LingWitt@insightbb.com wrote:
        Now that objects are accounted for by references and id, it should be possible to use them as keys in an associative array. That might be an interesting feature to have.
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. I suggest you create key() methods and call those, i.e., $obj->key() Sorry, Andi

« previous php.internals (#5190) next »