ConFoo 2025

The Dom\TokenList class

(PHP 8 >= 8.4.0)

Introduction

Represents a set of tokens in an attribute (e.g. class names).

Class synopsis

final class Dom\TokenList implements IteratorAggregate, Countable {
/* Properties */
public readonly int $length;
public string $value;
/* Methods */
/* Not documented yet */
}

Properties

length
The number of tokens.
value
The value of the attribute linked to this object.

Notes

Note: The DOM extension uses UTF-8 encoding when working with methods or properties. The parser methods auto-detect the encoding or allow the caller to specify an encoding.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top