XML::__unserialize()
Converts the serialized data back to its object.
Table of Contents
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::_()
The dynamic method initiator.
XML::__call()
Proxy for missing methods.
XML::__callStatic()
Proxy for missing static methods.
XML::__construct()
The constructor.
XML::__serialize()
Provides data to be serialized.
XML::__toString()
Converts the XML object to string.
XML::__unserialize()
Converts the serialized data back to its object.
XML::count()
Nothing.
XML::jsonSerialize()
Returns the data to be serialized as JSON.
XML::offsetExists()
Checks if an attribute exists.
XML::offsetGet()
Gets the attribute’s value.
XML::offsetSet()
Sets the attribute’s value.
XML::offsetUnset()
Deletes an attribute.