array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'dom-text.splittext.php', 1 => 'Dom\\Text::splitText', 2 => 'Breaks this node into two nodes at the specified offset', ), 'up' => array ( 0 => 'class.dom-text.php', 1 => 'Dom\\Text', ), 'prev' => array ( 0 => 'class.dom-text.php', 1 => 'Dom\\Text', ), 'next' => array ( 0 => 'class.dom-tokenlist.php', 1 => 'Dom\\TokenList', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/dom/text/splittext.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Dom\Text::splitText

(PHP 8 >= 8.4.0)

Dom\Text::splitText Breaks this node into two nodes at the specified offset

Beschreibung

public Dom\Text::splitText(int $offset): Dom\Text

Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.

Parameter-Liste

offset

The offset at which to split, starting from 0.

Rückgabewerte

The new node of the same type, which contains all the content at and after the offset.