note 116614 rejected from function.spl-object-hash by salathe
| From: | salathe@php.net | Date: | Fri, 06 Feb 2015 13:27:56 +0000 |
| Subject: | note 116614 rejected from function.spl-object-hash by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-201636@lists.php.net to get a copy of this message | ||
Note Submitter: thomasjiao at vip dot qq dot com
----
Note that, this function results the same when a class extends another class.
Example:
<?php
class myClass extends stdClass {}
$a = new stdClass;
$b = new myClass;
var_dump(spl_object_hash($a));
var_dump(spl_object_hash($b));
Results:
string(32) "000000000d2fc1010000000007cc7cec"
string(32) "000000000d2fc1020000000007cc7cec"