<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.domtext.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'domtext.splittext.php',
    1 => 'DOMText::splitText',
    2 => 'Breaks this node into two nodes at the specified offset',
  ),
  'up' => 
  array (
    0 => 'class.domtext.php',
    1 => 'DOMText',
  ),
  'prev' => 
  array (
    0 => 'domtext.iswhitespaceinelementcontent.php',
    1 => 'DOMText::isWhitespaceInElementContent',
  ),
  'next' => 
  array (
    0 => 'class.domxpath.php',
    1 => 'DOMXPath',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dom/domtext/splittext.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="domtext.splittext" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DOMText::splitText</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">DOMText::splitText</span> &mdash; <span class="dc-title">
   Breaks this node into two nodes at the specified offset
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-domtext.splittext-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>DOMText::splitText</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code></span>): <span class="type"><span class="type"><a href="class.domtext.php" class="type DOMText">DOMText</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Breaks this node into two nodes at the specified <code class="parameter">offset</code>, 
   keeping both in the tree as siblings. 
  </p>
  <p class="para">
   After being split, this node will contain all the content up to the 
   <code class="parameter">offset</code>. If the original node had a parent node, 
   the new node is inserted as the next sibling of the original node. 
   When the <code class="parameter">offset</code> is equal to the length of this node,
   the new node has no data.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-domtext.splittext-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       The offset at which to split, starting from 0.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-domtext.splittext-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   The new node of the same type, which contains all the content at and after the 
   <code class="parameter">offset</code>.
  </p>
 </div>

</div><?php manual_footer($setup); ?>