Re: Missing __toString() part
| From: | Andi Gutmans | Date: | Sun, 04 Jun 2006 14:26:13 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23924@lists.php.net to get a copy of this message | ||
I would suggest :
a) Make sure $arr[(string)$obj] works (I see no reason for it not to).
b) Look into how to support a unique identifier (-1 on a hash value). Two main questions are how this thing looks like, and whether it's explicit (you need to call some function/method to get it) or implicit (e.g. $arr[$obj]).
A Unique indentifier could look something like "Classname#Object id" e.g. "SimpleXMLElement#1".
Andi
P.S.-Yep, sticking to bullets keeps emails brief :)