Re: Object ID
| From: | Eli | Date: | Wed, 14 Feb 2007 19:03:02 +0000 |
| Subject: | Re: Object ID | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248882@lists.php.net to get a copy of this message | ||
Roman Neuhauser wrote:
Thanks!!! That is exactly what I need... :-) <?php class A {} class B {} $a = new A(); $b = new B(); var_dump(spl_object_hash($a)); var_dump(spl_object_hash($b)); ?> === output: string(32) "eaa76ef5378142caec7b40b56e4b6314" string(32) "6168ec2b9db13132570a79ef04104e3c" -thanks!How can I get the object ID number of each Object in PHP (v.5.2) ?http://cz2.php.net/manual/en/function.spl-object-hash.php