XML::__unserialize()

Converts the serialized data back to its object.

Table of Contents
  1. Description
  2. Example

Description

XML::__unserialize(array $lot): void;

This method will be called when the serialized data is successfully returned into an XML instance using the built-in PHP unserialize() function.

Example

$node = unserialize('O:3:"XML":3:{s:3:"lot";a:3:{i:0;s:3:"svg";i:1;s:0:"";i:2;a:1:{s:7:"version";s:3:"1.1";}}s:4:"deep";b:0;s:6:"strict";b:0;}');

echo $node['version']; // Returns `'1.1'`

XML::__unserialize()

Converts the serialized data back to its object.