Dom\TokenList::containsReturns whether the list contains a given token Description
public bool Dom\TokenList::contains(string
$token )
Returns whether the list contains Parameters
Return Values
Returns ExamplesExample #1 Dom\TokenList::contains example Checks whether two classes are present on the paragraph.
The above example will output: bool(true) bool(false) |