array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'domcharacterdata.insertdata.php', 1 => 'DOMCharacterData::insertData', 2 => 'Insert a string at the specified UTF-8 codepoint offset', ), 'up' => array ( 0 => 'class.domcharacterdata.php', 1 => 'DOMCharacterData', ), 'prev' => array ( 0 => 'domcharacterdata.deletedata.php', 1 => 'DOMCharacterData::deleteData', ), 'next' => array ( 0 => 'domcharacterdata.remove.php', 1 => 'DOMCharacterData::remove', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/domcharacterdata/insertdata.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5, PHP 7, PHP 8)
DOMCharacterData::insertData — Insert a string at the specified UTF-8 codepoint offset
   Inserts string data at position offset.
  
offsetThe character offset at which to insert.
dataThe string to insert.
DOM_INDEX_SIZE_ERR
       Raised if offset is negative or greater than the
       number of UTF-8 codepoints in data.