XML::__serialize()
Provides data to be serialized.
Table of Contents
Description
XML::__serialize(): array;
This method will be called when an XML
instance is serialized using the built-in PHP serialize()
function.
Example
$node = new XML('<svg version="1.1"></svg>');
echo serialize($node); // Returns `'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;}'`
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.