XMLReader::readInnerXML

(PHP 5 >= 5.2.0, PHP 7)

XMLReader::readInnerXMLRetrieve XML from current node

설명

public string XMLReader::readInnerXML ( void )

Reads the contents of the current node, including child nodes and markup.

인수

이 함수는 인수가 없습니다.

반환값

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

주의

Caution

이 함수는 PHP가 libxml 20620 이후와 함께 컴파일 되었을 때만 사용할 수 있습니다.

참고

add a note add a note

User Contributed Notes 2 notes

up
8
Evert Pot
9 years ago
Disregard my other comment.

readInnerXml does not advance the cursor, so you can call it more than once. I made a mistake testing this.
up
-13
Evert Pot
9 years ago
Note that readInnerXml() also advances the cursor.
To Top