spl_object_id
Description
The spl_object_id of SPL for PHP returns the integer object handle for a given object.
Syntax
spl_object_id( object $object ): int
Parameters
object
Any object.
Return
Returns an integer identifier that is unique for each currently existing object and is always the same for each object.
Examples
1 · object
<? class myclass { } $object = new myclass(); $return = spl_object_id($object); echo $return; ?>
1