Sets the value of an attribute.
public setAttribute ( string $name, string $value, array $params = [], boolean $append = true, array $values = false ) | ||
$name | string | The name of the attribute. |
$value | string | The value of the attribute. |
$params | array | Array containing any addition parameters for this attribute. |
$append | boolean | True to append the attribute, False to replace the first matching attribute found. |
$values | array | Array representation of $value. For comma/semicolon seperated lists of values. If not set use $value as single array element. |