PHP » GoLang |
login |
register |
about
|
GoLang SimpleXMLElement::attributes
request it (327)
GoLang replacement for PHP's SimpleXMLElement::attributes
[edit | history]
PHP SimpleXMLElement::attributesPHP original manual for SimpleXMLElement::attributes [ show | php.net ]SimpleXMLElement::attributes(PHP 5, PHP 7) SimpleXMLElement::attributes — Identifies 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" |
more
Recently updated
more
Most requested
more
Last requests
|