|
PHP5中文手册
SimpleXMLElement->getNamespaces()(PHP 5 >= 5.1.2) SimpleXMLElement->getNamespaces() — Returns namespaces used in document 说明SimpleXMLElement
array getNamespaces
([ bool $recursive
] )
Returns namespaces used in document 参数
返回值The getNamespaces method returns an array of namespace names with their associated URIs. 范例
Example#1 Get document namespaces in use
<?php 上例将输出:
|