API17

API17:JSimpleXMLElement::attributes

From Joomla! Documentation

Joomla 11.1 JSimpleXMLElement::attributes

Description

Get the an attribute of the element.


public function attributes ($attribute=null)
Parameter Type Default Description
$attribute string null The name of the attribute
  • Returns 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 on line 422 of libraries/joomla/utilities/simplexml.php

See also


User contributed notes

Code Examples