(PHP 5 >= 5.1.3, PHP 7)
The SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object.
$data
[, int $options
= 0
[, bool $data_is_url
= FALSE
[, string $ns
= ""
[, bool $is_prefix
= FALSE
]]]] )$name
[, string $value
[, string $namespace
]] ) : void$name
[, string $value
[, string $namespace
]] ) : SimpleXMLElement$ns
= NULL
[, bool $is_prefix
= FALSE
]] ) : SimpleXMLElement$recursive
= FALSE
[, bool $from_root
= TRUE
]] ) : array