API17:JSimpleXMLElement::addChild
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JSimpleXMLElement::addChild
Description
Adds a direct child to the element.
Description:JSimpleXMLElement::addChild [Edit Descripton]
Synopsis
public JSimpleXMLElement::addChild ($name, $attrs=array(), $level=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | ||
| $attrs | array | array() | |
| $level | int | null |
Returns
The added child object
Defined in
libraries/joomla/utilities/simplexml.php (line 511)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JSimpleXMLElement::addChild
Examples
<CodeExamplesForm />
