略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Serializable::unserialize

2024-05-05

Serializable::unserialize

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Serializable::unserialize构造对象

说明

public Serializable::unserialize(string $data): void

在反序列化对象时被调用。

注意:

这个方法担当着对象构造器的角色。在此方法之后,__construct()不会被调用。

参数

data

对象的字符串表示

返回值

返回没有序列化之前的原始值。

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/serializable.unserialize.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3