|
update : 2015.11.03
php.shukuma.com검색:
|
SimpleXMLElement::getDocNamespaces(PHP 5 >= 5.1.2) SimpleXMLElement::getDocNamespaces — Returns namespaces declared in document 설명
public array SimpleXMLElement::getDocNamespaces
([ bool
$recursive = false
[, bool $from_root = true
]] )Returns namespaces declared in document 인수
반환값The getDocNamespaces method returns an array of namespace names with their associated URIs. 예제
Example #1 Get document namespaces
<?php위 예제의 출력:
array(1) {
["p"]=>
string(21) "http://example.org/ns"
}
Example #2 Working with multiple namespaces
<?php위 예제의 출력:
array(3) {
["p"]=>
string(21) "http://example.org/ns"
["t"]=>
string(23) "http://example.org/test"
["a"]=>
string(23) "http://example.org/addr"
}
변경점
참고
|