JSimpleXMLElement::attributes
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::attributes[edit]
Description[edit]
Get the an attribute of the element.
Template:Description:JSimpleXMLElement::attributes [Edit Descripton]
Synopsis[edit]
public JSimpleXMLElement::attributes ($attribute=null)
Parameter | Type | Default | Description |
---|---|---|---|
$attribute | string | null | The name of the attribute |
Returns[edit]
mixed If an attribute is given will return the attribute if it exist. If no attribute is given will return the complete attributes array
Defined in[edit]
libraries/joomla/utilities/simplexml.php (line 431)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JSimpleXMLElement::attributes
Examples[edit]
<CodeExamplesForm />