API17

JSimpleXMLElement::attributes

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.

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


Advertisement