Get the value of an attribute.
public getAttribute ( string $name, boolean $params = false ) : mixed | ||
$name | string | The name of the attribute. |
$params | boolean | Return the parameters for this attribute instead of its value. |
return | mixed | (string) The value of the attribute. (array) The parameters for the attribute or multiple values for an attribute. |