PHP 8.5.0 Beta 2 available for testing

Dom\TokenList::supports

(PHP 8 >= 8.4.0)

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

説明

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

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

パラメータ

token
The token.

戻り値

成功した場合に true を、失敗した場合に false を返します。

エラー / 例外

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