Re: Unique Object Instance ID..?
| From: | Ross McKay | Date: | Sun, 11 Jan 2009 03:09:20 +0000 |
| Subject: | Re: Unique Object Instance ID..? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286006@lists.php.net to get a copy of this message | ||
On Sat, 10 Jan 2009 18:42:01 -0700, Nathan Nobbe wrote:
>checkout spl_object_hash()
>
>http://php.net/function.spl_object_hash
NB: only guarantees uniqueness for objects instantiated and in memory at
the same time. See the comments on that page for an example of creating
identical object hashes for two separate and distinct instances.
--
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin