string|null attr(string $attribute)
Returns the attribute value of the first node of the list.
string|null attr(string $attribute)
Returns the attribute value of the first node of the list.
string | $attribute | The attribute name |
string|null | The attribute value or null if the attribute does not exist |
InvalidArgumentException | When current node is empty |
Designed by : w10schools
service@w10schools.com
Please login to continue.