PHP | SimpleXMLElement getDocNamespaces() Function
Pre-requisite: Read XML Basics The SimpleXMLElement::getDocNamespaces() function is an inbuilt function in PHP which is used to retrieve the namespaces declared in XML document. Syntax: array SimpleXMLElement::getDocNamespaces( $recursive, $from_root ) Parameters: This function accepts two parameter