โ— Shell
clean mode source โ†—

PHP: DOMDocument::createTextNode - Manual

(PHP 5, PHP 7, PHP 8)

DOMDocument::createTextNode โ€” Create new text node

Description

public function DOMDocument::createTextNode(string $data): DOMText

Parameters

data

The content of the text.

Return Values

The new DOMText.

Changelog

Version Description
8.1.0 In case of an error, a DomException is thrown now. Previously, false was returned.

See Also