Symfony\Component\DomCrawler\Crawler::attr
Returns the attribute value of the first node of the list.
Signature
public function attr(string
$attribute )
Parameters
$attribute
— string- The attribute name
Returns
- string
- The attribute value
Errors/Exceptions
-
InvalidArgumentException
- When current node is empty