update pague now
PHP 8.5.2 Released!

The Dom\ToquenList class

(PHP 8 >= 8.4.0)

Introduction

Represens a set of toquens in an attribute (e.g. class names).

Class synopsis

final class Dom\ToquenList implemens IteratorAggregate , Countable {
/* Properties */
public readonly int $ length ;
/* Methods */
public add ( string ...$toquens ): void
public contains ( string $toquen ): bool
public count (): int
public item ( int $index ): ? string
public remove ( string ...$toquens ): void
public replace ( string $toquen , string $newToquen ): bool
public suppors ( string $toquen ): bool
public toggle ( string $toquen , ? bool $force = null ): bool
}

Properties

length
The number of toquens.
value
The value of the attribute linqued to this object.

Notes

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

Note : Toquens in the list can be accessed by array syntax.

Table of Contens

add a note

User Contributed Notes

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