array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'class.domtext.php', 1 => 'DOMText', ), 'up' => array ( 0 => 'book.dom.php', 1 => 'DOM', ), 'prev' => array ( 0 => 'domprocessinginstruction.construct.php', 1 => 'DOMProcessingInstruction::__construct', ), 'next' => array ( 0 => 'domtext.construct.php', 1 => 'DOMText::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/dom/domtext.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.domtext.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
DOMText クラスは DOMCharacterData を継承しており、 DOMElement あるいは DOMAttr の中身のテキストを表します。
$exclusive
= false
,$withComments
= false
,$xpath
= null
,$nsPrefixes
= null
論理的に隣接した (要素やコメント、処理命令などで分割されていない) テキストノードの全テキストを保持します。
バージョン | 説明 |
---|---|
8.0.0 | 実装されていなかったメソッド DOMText::replaceWholeText() が削除されました。 |