|
SimpleXMLElement::attributesIdentifies an element's attributes Description
public SimpleXMLElement SimpleXMLElement::attributes
([ string
$ns = NULL
[, bool $is_prefix = 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
<?php The above example will output: name="one" game="lonely" |