Re: Missing __toString() part

From: Date: Sat, 03 Jun 2006 17:03:24 +0000
Subject: Re: Missing __toString() part
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-23890@lists.php.net to get a copy of this message
RL>>I don't understand why using the object as an index would trigger a RL>>__toString() call. PHP's array indices are not defined to be strings, RL>>so I don't see this as being a string context use and thus RL>>__toString() shouldn't be called. If so, what should be the actual key in the hash? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.internals (#23890) next »