|
SimpleXMLElement::attributesIdentifies an element's attributes Description
public SimpleXMLElementnull SimpleXMLElement::attributes(stringnull
$namespaceOrPrefix = null , bool $isPrefix = false )This function provides the attributes and values defined within an xml tag.
Parameters
Return ValuesReturns a SimpleXMLElement object that can be iterated over to loop through the attributes on the tag.
Returns Examples
Example #1 Interpret an XML string
The above example will output: name="one" game="lonely" |