Dom\Text::splitText
(PHP 8 >= 8.4.0)
Dom\Text::splitText — Breaks this node into two nodes at the specified offset
Description
Breaks this node into two nodes at the specified offset,
keeping both in the tree as siblings.
Parameters
offset
The offset at which to split, starting from 0.
Return Values
The new node of the same type, which contains all the content at and after the
offset.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
