XMLReader::readOuterXml

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

XMLReader::readOuterXmlRetrieve XML from current node, including itself

Опис

public XMLReader::readOuterXml(): string

Reads the contents of the current node, including the node itself.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the contents of current node, including itself, as a string. Empty string on failure.

Примітки

Застереження

Ця функція доступна тільки, якщо PHP зібрано разом з libxml версії 20620 або новішою.

Прогляньте також