<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.domcharacterdata.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'domcharacterdata.substringdata.php',
    1 => 'DOMCharacterData::substringData',
    2 => 'Extracts a range of data from the character data',
  ),
  'up' => 
  array (
    0 => 'class.domcharacterdata.php',
    1 => 'DOMCharacterData',
  ),
  'prev' => 
  array (
    0 => 'domcharacterdata.replacewith.php',
    1 => 'DOMCharacterData::replaceWith',
  ),
  'next' => 
  array (
    0 => 'class.domchildnode.php',
    1 => 'DOMChildNode',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dom/domcharacterdata/substringdata.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="domcharacterdata.substringdata" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DOMCharacterData::substringData</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">DOMCharacterData::substringData</span> &mdash; <span class="dc-title">
   Extracts a range of data from the character data
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-domcharacterdata.substringdata-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>DOMCharacterData::substringData</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="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$count</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Returns the specified substring. 
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-domcharacterdata.substringdata-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       Start offset of substring to extract.
      </p>
     </dd>
    
    
     <dt><code class="parameter">count</code></dt>
     <dd>
      <p class="para">
       The number of characters to extract.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-domcharacterdata.substringdata-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   The specified substring. If the sum of <code class="parameter">offset</code> 
   and <code class="parameter">count</code> exceeds the length, then all UTF-8 codepoints
   to the end of the data are returned.
  </p>
 </div>

 <div class="refsect1 errors" id="refsect1-domcharacterdata.substringdata-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="simpara">
   May throw a <span class="exceptionname"><a href="class.domexception.php" class="exceptionname">DOMException</a></span> with the
   following error codes:
  </p>
  <p class="para">
   <dl>
    
     <dt><strong><code><a href="dom.constants.php#constant.dom-index-size-err">DOM_INDEX_SIZE_ERR</a></code></strong></dt>
     <dd>
      <p class="para">
       Raised if <code class="parameter">offset</code> is negative or greater than the
       number of UTF-8 codepoints in data, or if <code class="parameter">count</code> is
       negative.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-domcharacterdata.substringdata-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="domcharacterdata.appenddata.php" class="methodname" rel="rdfs-seeAlso">DOMCharacterData::appendData()</a> - Append the string to the end of the character data of the node</span></li>
    <li><span class="methodname"><a href="domcharacterdata.deletedata.php" class="methodname" rel="rdfs-seeAlso">DOMCharacterData::deleteData()</a> - Remove a range of characters from the character data</span></li>
    <li><span class="methodname"><a href="domcharacterdata.insertdata.php" class="methodname" rel="rdfs-seeAlso">DOMCharacterData::insertData()</a> - Insert a string at the specified UTF-8 codepoint offset</span></li>
    <li><span class="methodname"><a href="domcharacterdata.replacedata.php" class="methodname" rel="rdfs-seeAlso">DOMCharacterData::replaceData()</a> - Replace a substring within the character data</span></li>
   </ul>
  </p>
 </div>

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