API17:JSimpleXMLElement::addAttribute
From Joomla! Documentation
JSimpleXMLElement::addAttribute
Description
Adds an attribute to the element.
public function addAttribute (
$name
$value
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | ||
| $value | array | $attrs |
- Returns
- Defined on line 474 of libraries/joomla/utilities/simplexml.php
See also
JSimpleXMLElement::addAttribute source code on BitBucket
Class JSimpleXMLElement
Subpackage Utilities- Other versions of JSimpleXMLElement::addAttribute
User contributed notes
Code Examples