Get Attribute

Function to get a specified attribute from the first Tag in this TagArray.

Prototype

public function getAttr( $name )

Parameters

  • $name (string) - the name of the attribute

Return

String - the value of the attribute