略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Dom\Text::splitText

2025-02-27

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.

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/dom-text.splittext.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3