Movatterモバイル変換


[0]ホーム

URL:


    DOMCharacterData::after »
    « DOMCdataSection::__construct

    The DOMCharacterData class

    (PHP 5, PHP 7, PHP 8)

    Introduction

    Represents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it.

    Class synopsis

    classDOMCharacterDataextendsDOMNodeimplementsDOMChildNode {
    /* Inherited constants */
    /* Properties */
    publicreadonlyint$length;
    /* Inherited properties */
    publicreadonlystring$nodeName;
    publicreadonlyint$nodeType;
    publicreadonly?DOMNode$parentNode;
    publicreadonly?DOMElement$parentElement;
    publicreadonlyDOMNodeList$childNodes;
    publicreadonly?DOMNode$firstChild;
    publicreadonly?DOMNode$lastChild;
    publicreadonly?DOMNode$previousSibling;
    publicreadonly?DOMNode$nextSibling;
    publicreadonlybool$isConnected;
    publicreadonly?string$namespaceURI;
    publicreadonly?string$localName;
    publicreadonly?string$baseURI;
    /* Methods */
    publicafter(DOMNode|string...$nodes):void
    publicappendData(string$data):true
    publicbefore(DOMNode|string...$nodes):void
    publicdeleteData(int$offset,int$count):bool
    publicinsertData(int$offset,string$data):bool
    publicremove():void
    publicreplaceData(int$offset,int$count,string$data):bool
    publicreplaceWith(DOMNode|string...$nodes):void
    publicsubstringData(int$offset,int$count):string|false
    /* Inherited methods */
    publicDOMNode::C14N(
        bool$exclusive =false,
        bool$withComments =false,
        ?array$xpath =null,
        ?array$nsPrefixes =null
    ):string|false
    publicDOMNode::C14NFile(
        string$uri,
        bool$exclusive =false,
        bool$withComments =false,
        ?array$xpath =null,
        ?array$nsPrefixes =null
    ):int|false
    publicDOMNode::isSupported(string$feature,string$version):bool
    }

    Properties

    data

    The contents of the node.

    length

    The length of the contents.

    nextElementSibling

    The next sibling element ornull.

    previousElementSibling

    The previous sibling element ornull.

    Changelog

    VersionDescription
    8.0.0 ThenextElementSibling andpreviousElementSibling properties have been added.
    8.0.0DOMCharacterData implementsDOMChildNode now.

    See Also

    Table of Contents

    Found A Problem?

    Learn How To Improve This PageSubmit a Pull RequestReport a Bug
    add a note

    User Contributed Notes1 note

    jesdisciple dot FOO at gmail dot BAR dot com
    15 years ago
    In case you're looking for the CDATA class to which nodes /do/ correspond, it's called DOMCdataSection (per my PHP installation) and isn't documented on php.net.  Presumably, it doesn't add anything to this API.See also:http://www.php.net/manual/en/domdocument.createcdatasection.php
    add a note
    To Top
    and to navigate •Enter to select •Esc to close •/ to open
    PressEnter without selection to search using Google

    [8]ページ先頭

    ©2009-2025 Movatter.jp