XML::__construct()

The constructor.

Table of Contents
  1. Description
  2. Example

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::__construct()

The constructor.