Re: Missing __toString() part

From: Date: Sun, 04 Jun 2006 01:01:00 +0000
Subject: Re: Missing __toString() part
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-23898@lists.php.net to get a copy of this message
Hi, On 6/4/06, Andi Gutmans <andi@zend.com> wrote: > Generally I think it's a good thing to allow to use objects as array > indexes. There are really two ways of doing it: > a) Try and find a way to create unique ideas. > b) Support __toString() and leave it up to the author. I see a third choice, which I prefer: c) leave the choice to the user, he knows better what to do with his object (like implementing his own get(Hash|Key) method. --Pierre

« previous php.internals (#23898) next »