简介
PHP Manual
PHP Manual»DOM»Dom\NamedNodeMap

The Dom\NamedNodeMap class

(PHP 8 >= 8.4.0)

Represents the set of attributes on an element. This is the modern, spec-compliant equivalent of DOMNamedNodeMap.

class Dom\NamedNodeMap implements IteratorAggregate, Countable {
/* 属性 */
public readonly int $length;
/* 方法 */
/* Not documented yet */
}
length

The number of attributes.

版本 说明
8.5.0 Cloning a Dom\NamedNodeMap object now fails.

注意:

此 DOM 扩展在处理方法或属性时使用 UTF-8 编码。 解析器方法会自动检测编码,或允许调用者指定编码。

To Top