Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
218
DOMText Function splitText
PHP Version: (No version information might be only in CVS. I have used this function
in PHP5)
Description
This function splits a text node into two at
specified index.
Usage:
objectDOMText->splitText ( int offset)
Breaks
this node into two nodes at the specified offset, keeping both in the
tree as siblings. After being
split, this node will contain all the content up to the offset. A new
node of the same type, which contains all the content at and after the offset,
is returned. If the original node had a parent node, the new node is inserted
as the next sibling of the original node. When the offset is equal to
the length of this node, the new node has no data.