Easy Tutorial
❮ Func String Quoted Printable Encode Func String Str Getcsv ❯

PHP getNamespaces() Function

PHP SimpleXML Reference Manual

Example

Returns the namespaces used in the XML document:


Definition and Usage

The getNamespaces() function returns the namespaces used in the XML document.


Syntax

Parameter Description
recursive Optional. Specifies a boolean value. If set to TRUE, it returns all namespaces declared in parent and child nodes. If set to FALSE, it returns only the namespaces declared in the root node. Default is FALSE.

Technical Details

Return Value: Returns an array of namespace names with their associated URIs.
PHP Version: 5.1.2+
--- ---
❮ Func String Quoted Printable Encode Func String Str Getcsv ❯