array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'serializable.unserialize.php', 1 => 'Serializable::unserialize', 2 => 'Constructs the object', ), 'up' => array ( 0 => 'class.serializable.php', 1 => 'Serializable', ), 'prev' => array ( 0 => 'serializable.serialize.php', 1 => 'Serializable::serialize', ), 'next' => array ( 0 => 'class.closure.php', 1 => 'Closure', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/serializable/unserialize.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Serializable::unserialize

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

Serializable::unserializeConstructs the object

Опис

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

Called during unserialization of the object.

Зауваження:

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

Параметри

data

The string representation of the object.

Значення, що повертаються

The return value from this method is ignored.

Прогляньте також