note 90296 deleted from function.spl-object-hash by googleguy

From: Date: Mon, 08 Oct 2012 04:10:42 +0000
Subject: note 90296 deleted from function.spl-object-hash by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191175@lists.php.net to get a copy of this message
Note Submitter: andi.rein(AT)gmx de ---- Easy does it <?php if (!function_exists('spl_object_hash')) { /** * Returns the hash of the unique identifier for the object. * * @param object $object * @author Andreas Rein * @return string */ function spl_object_hash($object) { if (is_object($object)) { return md5((string)$object); } trigger_error(__FUNCTION__ . "() expects parameter 1 to be object", E_USER_WARNING); return null; } } ?>

« previous php.notes (#191175) next »