|
SimpleXMLElement::getNamespacesReturns namespaces used in document Description
public array SimpleXMLElement::getNamespaces
([ bool
$recursive = false
] )Returns namespaces used in document Parameters
Return ValuesThe getNamespaces method returns an array of namespace names with their associated URIs. Examples
Example #1 Get document namespaces in use
<?php The above example will output: array(1) { ["p"]=> string(21) "http://example.org/ns" } See Also
|