Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Serializable::serializeClosure>
^SerializableLast updated: Mon, 26 Oct 2026

Serializable::unserialize

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

Serializable::unserialize — Constructs the object

Description

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

Called during unserialization of the object.

Note:

This method acts as the constructor of the object. The __construct() method will not be called after this method.

Parameters

data

The string representation of the object.

Return Values

The return value from this method is ignored.


<Serializable::serializeClosure>
^SerializableLast updated: Mon, 26 Oct 2026