# Dom\Text::splitText

(PHP 8 >= 8.4.0)

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

### 说明

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.

### 参数

`offset`

  The offset at which to split, starting from 0.

### 返回值

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

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open