phpday 2027 - Call for Papers

The Dom\HTMLCollection class

(PHP 8 >= 8.4.0)

Introduzione

Represents a static set of elements. It is similar to Dom\NodeList, but restricted to Dom\Element nodes.

Sommario della classe

class Dom\HTMLCollection implements IteratorAggregate, Countable {
/* Proprietà */
public readonly int $length;
/* Metodi */
/* Not documented yet */
}

Proprietà

length

The number of elements.

Log delle modifiche

Versione Descrizione
8.5.0 Cloning a Dom\HTMLCollection object now fails.

Note

Nota:

L'estensione DOM usa la codifica UTF-8 quando si lavora con metodi o proprietà. I metodi del parser rilevano automaticamente la codifica o consentono al chiamante di specificarne una.

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top