Attributes::has

The has() method checks if the element has an attribute with the specified name.

Description

public Attributes::has(string $name): bool

Parameters

name

The name of the attribute to check for.

Return Value

Returns true if the attribute exists, otherwise false.

Exceptions

None

Source Code
If you find this project useful, consider leaving a on GitHub! Thank you!