Set Attribute

Function to set an attribute of every Tag in this TagArray.

Prototype

public function setAttr( $name, $value )

Parameters

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

Return

TagArray - this object for chaining