Re: toString() and Object #ID
| From: | Gwynne Raskind | Date: | Sun, 01 Jul 2007 07:27:25 +0000 |
| Subject: | Re: toString() and Object #ID | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30383@lists.php.net to get a copy of this message | ||
On Jul 1, 2007, at 3:24 AM, Pavel Shevaev wrote:
always helpful). Is there any other way than casting an object to a string to get an objects #ID?+1 on PHP_FEALIAS()ing this. -- Gwynne, Daughter of the Code "This whole world is an asylum for the incurable."spl_object_hash?Guys, excuse my being a little offtopic here, but why not introduce standard "get_object_id" function in PHP6 which could be analogous to "spl_object_hash"? IMHO it's a basic functionality which deserves to be in the core...