HTML::__unserialize()
Converts the serialized data back to its object.
Table of Contents
Description
HTML::__unserialize(array $lot): void;This method will be called when the serialized data is successfully returned into an HTML instance using the built-in PHP unserialize() function.
Example
$node = unserialize('O:4:"HTML":4:{s:3:"lot";a:3:{i:0;s:3:"div";i:1;s:3:"bar";i:2;a:1:{s:2:"id";s:3:"foo";}}s:3:"raw";a:3:{s:6:"script";i:1;s:5:"style";i:1;s:8:"textarea";i:1;}s:4:"deep";b:0;s:6:"strict";b:0;}');
echo $node['id']; // Returns `'foo'`HTML::_()
The dynamic method initiator.
HTML::__call()
Proxy for missing methods.
HTML::__callStatic()
Proxy for missing static methods.
HTML::__construct()
The constructor.
HTML::__serialize()
Provides data to be serialized.
HTML::__toString()
Converts the HTML object to string.
HTML::__unserialize()
Converts the serialized data back to its object.
HTML::count()
Nothing.
HTML::jsonSerialize()
Returns the data to be serialized as JSON.
HTML::offsetExists()
Checks if an attribute exists.
HTML::offsetGet()
Gets the attribute’s value.
HTML::offsetSet()
Sets the attribute’s value.
HTML::offsetUnset()
Deletes an attribute.