JSimpleXMLElement::addAttribute
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JSimpleXMLElement::addAttribute[edit]
Description[edit]
Adds an attribute to the element.
Template:Description:JSimpleXMLElement::addAttribute [Edit Descripton]
Synopsis[edit]
public JSimpleXMLElement::addAttribute ($name, $value)
Parameter | Type | Default | Description |
---|---|---|---|
$name | string | ||
$value | array | $attrs |
Returns[edit]
Defined in[edit]
libraries/joomla/utilities/simplexml.php (line 487)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JSimpleXMLElement::addAttribute
Examples[edit]
<CodeExamplesForm />