|
update : 2015.11.03
php.shukuma.com검색:
|
SimpleXMLElement::getNamespaces(PHP 5 >= 5.1.2) SimpleXMLElement::getNamespaces — Returns namespaces used in document 설명
public array SimpleXMLElement::getNamespaces
([ bool
$recursive = false
] )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위 예제의 출력:
array(1) {
["p"]=>
string(21) "http://example.org/ns"
}
참고
|