spl_object_id() - SPL函数
spl_object_id()
(PHP 7 >= 7.2.0)
Return the integer object handle for given object
说明
spl_object_id(object $obj): intThis function returns a unique identifier for the object. The object id is unique for the lifetime of the object. Once the object is destroyed, its id may be reused for other objects. This behavior is similar to spl_object_hash().
参数
$objectAny object.
返回值
An integer identifier that is unique for each currently existing object and is always the same for each object.
范例
A spl_object_id() example
注释
Note:When an object is destroyed, its id may be reused for other objects.
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!