The DOMDocumentFragment class
(PHP 5, PHP 7, PHP 8)
類摘要
/* 屬性 */
/* 繼承的屬性 */
/* 方法 */
public __construct()
/* 繼承的方法 */
public DOMNode::C14N(
bool
bool
?array
?array
): string|false
bool
$exclusive
= false
,bool
$withComments
= false
,?array
$xpath
= null
,?array
$nsPrefixes
= null
): string|false
public DOMNode::C14NFile(
string
bool
bool
?array
?array
): int|false
}string
$uri
,bool
$exclusive
= false
,bool
$withComments
= false
,?array
$xpath
= null
,?array
$nsPrefixes
= null
): int|false
屬性
- childElementCount
-
The number of child elements.
- firstElementChild
-
First child element or
null
. - lastElementChild
-
Last child element or
null
.
更新日誌
版本 | 說明 |
---|---|
8.0.0 | The firstElementChild, lastElementChild, and childElementCount properties have been added. |
8.0.0 | DOMDocumentFragment implements DOMParentNode now. |
目錄
- DOMDocumentFragment::appendXML — Append raw XML data
- DOMDocumentFragment::__construct — Constructs a DOMDocumentFragment object