Dom\TokenList::supports

(PHP 8 >= 8.4.0)

Dom\TokenList::supportsReturns whether the given token is supported

Descrizione

public Dom\TokenList::supports(string $token): bool

Returns whether token is in the associated attribute's supported tokens.

Elenco dei parametri

token
The token.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Errori/Eccezioni

Throws a TypeError when the attribute does not define a supported tokens list.

add a note

User Contributed Notes

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