XML::__construct()
The constructor.
Table of Contents
Description
XML::__construct(array|string $value = [], bool $deep = false): self;
This method will be called when you instantiate an XML
class.
Example
$node = new XML('<svg version="1.1"></svg>');
$node = new XML(['svg', "", ['version' => '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.