php8.5
Home/ Manual/ dom / domtext/ DOMText::isWhitespaceInElementContent

DOMText::isWhitespaceInElementContent

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Indicates whether this text node contains whitespace

Description

DOMText::isWhitespaceInElementContent(): bool

Indicates whether this text node contains only whitespace or it is empty. The text node is determined to contain whitespace in element content during the load of the document.

Parameters Parameters

Return Values

Returns true if node contains zero or more whitespace characters and nothing else. Returns false otherwise.

Source: reference/dom/domtext/iswhitespaceinelementcontent.xml · from the official PHP manual (php/doc-en)