php8.5
Home/ Manual/ predefined / serializable/ Serializable::unserialize

Serializable::unserialize

PHP function Edit on GitHub ✎

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

Constructs the object

Description

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.

See Also

Source: language/predefined/serializable/unserialize.xml · from the official PHP manual (php/doc-en)