(PHP 8 >= 8.4.0)
Represents a set of tokens in an attribute (e.g. class names).
...$tokens
$token
$index
$newToken
$force
null
The number of tokens.
The value of the attribute linked to this object.
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.
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.
Note: Tokens in the list can be accessed by array syntax.
Tokens in the list can be accessed by array syntax.