PHP - Manual: Dom\TokenList::supports
2025-02-27
(PHP 8 >= 8.4.0)
Dom\TokenList::supports — Returns whether the given token is supported
Returns whether token
is in the
associated attribute's supported tokens.
token
Throws a TypeError when the attribute does not define a supported tokens list.
官方地址:https://www.php.net/manual/en/dom-tokenlist.supports.php